blob: b6ff92edc61be316156497a5c3a0a5905df87afe (
plain)
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
|
SRC := $(wildcard src/*.cpp)
OBJECTS := $(patsubst %.cpp,%.o,${SRC})
DEPS := $(patsubst %.cpp,%.d,${SRC})
.PHONY: default all clean
default: clic.exe
all: clic.exe
clean:
-rm clic.exe ${OBJECTS} ${DEPS}
clic.exe: ${OBJECTS}
g++ -ggdb -o clic.exe ${OBJECTS} -L../libbu++ -lbu++ ${LDCONFIG}
${OBJECTS}: %.o: %.cpp
g++ -ggdb -W -Wall -I../libbu++ $< -c -o $@
${DEPS}: %.d: %.cpp
g++ -M -I../libbu++ $< > $@
sed -i -e 's,^\([^ ]*\)\( *: *\),src/\1 $@: ,' $@
-include ${DEPS}
|