-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
43 lines (32 loc) · 831 Bytes
/
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
# This is the master makefile, run make to build all projects
SHELL = /bin/bash
CFLAGS = -I ./ -O0
VERSION = 0.0.1
export
ifeq ($(shell uname -s),Darwin)
EXT = dylib
else
EXT = so
endif
# Targets
.PHONY: all tests install clean randomstr webng maze
all: randomstr webng maze servrian
randomstr:
$(MAKE) -C src/randomstr
webng:
$(MAKE) -C src/webng
key: randomstr
./src/randomstr/randomstr >> .KEY
maze: randomstr webng
$(MAKE) -C src/maze
install:
cp src/randomstr/randomstr /usr/local/bin
cp src/webng/libwebng.$(EXT) /usr/local/lib
cp src/webng/webng.h /usr/local/include
cp src/maze/maze /usr/local/bin
tests: webng
$(MAKE) -C tests/Makefile
clean:
find src/* -type f ! -name "*.c" ! -name "*.h" ! -name "Makefile" \
-exec rm {} \;
find tests/* -type f ! -name "*.c" ! -name "Makefile" -exec rm {} \;