-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (23 loc) · 696 Bytes
/
Makefile
File metadata and controls
35 lines (23 loc) · 696 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
# by: MaG.
include Makefile.inc
VPATH = build
$(LIB_NAME): lib src generate_header.o
ar rcs build/$(LIB_NAME) src/utils.o src/load.o lib/hash.o lib/ini.o
.PHONY: lib src tests
lib:
$(ECHO) "Stepping into: lib/"
$(MAKE) -I.. -C lib/
src: generate_header.o
$(ECHO) "Stepping into: src/"
$(MAKE) -I.. -C src/
generate_header.o: generate_header.c lib/hash.o
$(CC) -c $< $(CFLAGS) -I./lib/
$(CC) -o build/generate_header generate_header.o lib/hash.o $(CFLAGS)
./build/generate_header include/
tests: $(LIB_NAME)
$(MAKE) -C tests/ -I..
clean:
-rm -f build/generate_header build/$(LIB_NAME)
$(MAKE) clean -C lib/ -I../
$(MAKE) clean -C src/ -I../
$(MAKE) clean -C tests/ -I../