Parent Directory | Revision Log
An usefull command line parser
1 | nikolas | 1.1 | DEBUG=-g |
2 | CC = g++ | ||
3 | ALL_CFLAGS = -Wall -O6 | ||
4 | |||
5 | CFLAGS= ${DEBUG} ${ALL_CFLAGS} | ||
6 | LDFLAGS=${DEBUG} | ||
7 | |||
8 | INCS =-Iinc | ||
9 | SRCS := $(wildcard src/*.cpp) | ||
10 | OBJSO = $(SRCS:.cpp=.o) | ||
11 | |||
12 | CPPFLAGS=${INCS} | ||
13 | |||
14 | |||
15 | example_update_mode: example_update_mode.cpp $(OBJSO) | ||
16 | example_define_mode: example_define_mode.cpp $(OBJSO) | ||
17 | |||
18 | libCmdLineParser.a: lib/libCmdLineParser.a(${OBJSO}) | ||
19 | libCmdLineParser.so: ${OBJSO} | ||
20 | g++ --shared $^ -o lib/$@ | ||
21 | |||
22 | .PHONY : clean | ||
23 | clean: | ||
24 | rm -f *.o *.exe ${OBJS0} | ||
25 | info: | ||
26 | @echo ${SRCS} | ||
27 | @echo ${OBJS0} |
ViewVC Help | |
Powered by ViewVC 1.1.23 |