-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (29 loc) · 724 Bytes
/
Makefile
File metadata and controls
41 lines (29 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Developer: Vikram Bala
# Contact: vikrambala2002@gmail.com
# Copyright © 2023 Vikram Bala
#
# name of the program to build
PROG=chord
# Remove -DNDEBUG during development if assert(3) is used
#
override CPPFLAGS += -DNDEBUG -DPROMPT=$(PROMPT)
CC = clang++ -lpthread -lssl -lcrypto -std=c++14
CFLAGS = -Wall -Werror -g
UTIL_SRCS = $(wildcard ./util/*.cpp)
UTIL_OBJS = $(UTIL_SRCS:.c=.o)
util : $(UTIL_OBJS)
$(CC) -c $^
CHORD_SRCS = $(wildcard ./src/*.cpp)
CHORD_OBJS = $(CHORD_SRCS:.c=.o)
src : $(CHORD_OBJS) $(OBJS)
$(CC) -c $^
SRCS = $(wildcard *.cpp)
OBJS = $(SRCS:.c=.o)
chord : $(CHORD_OBJS) $(UTIL_OBJS) $(OBJS)
$(CC) -o $@ $^
all : util src chord
mv *.o ./bin/
clean :
$(RM) ./bin/*
rm -r chord