summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b6ff92e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
1SRC := $(wildcard src/*.cpp)
2OBJECTS := $(patsubst %.cpp,%.o,${SRC})
3DEPS := $(patsubst %.cpp,%.d,${SRC})
4
5.PHONY: default all clean
6
7default: clic.exe
8
9all: clic.exe
10
11clean:
12 -rm clic.exe ${OBJECTS} ${DEPS}
13
14clic.exe: ${OBJECTS}
15 g++ -ggdb -o clic.exe ${OBJECTS} -L../libbu++ -lbu++ ${LDCONFIG}
16
17${OBJECTS}: %.o: %.cpp
18 g++ -ggdb -W -Wall -I../libbu++ $< -c -o $@
19
20${DEPS}: %.d: %.cpp
21 g++ -M -I../libbu++ $< > $@
22 sed -i -e 's,^\([^ ]*\)\( *: *\),src/\1 $@: ,' $@
23
24-include ${DEPS}
25