-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (30 loc) · 1.11 KB
/
Makefile
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
42
43
# ==================================================== #
# C O M P I L A T I O N S E T U P #
# ==================================================== #
# defines the compiler and flags #
# ---------------------------------------------------- #
CC = gcc
CFLAGS = -g -W -Wall -std=c99 -pedantic -O2
CLIBS = -lm
# ==================================================== #
# T A R G E T S D E C L A R A T I O N #
# ==================================================== #
# defines the targets of the makefile #
# ---------------------------------------------------- #
all: build simple-clean
build: main.o ensemble.o afn.o afd.o test.o
$(CC) main.o ensemble.o afn.o afd.o test.o -o main $(CLIBS)
main.o: ./src/main.c
$(CC) $(CFLAGS) -c ./src/main.c
ensemble.o: ./src/ensemble/ensemble.c
$(CC) $(CFLAGS) -c ./src/ensemble/ensemble.c
afn.o: ./src/afn/afn.c
$(CC) $(CFLAGS) -c ./src/afn/afn.c
afd.o: ./src/afd/afd.c
$(CC) $(CFLAGS) -c ./src/afd/afd.c
test.o: ./src/test/test.c
$(CC) $(CFLAGS) -c ./src/test/test.c
simple-clean:
rm -f *.o
clean:
rm -f *.o main