Makefile 1.15 KB
Newer Older
1

Johnny Jazeix's avatar
Johnny Jazeix committed
2 3
CC = g++
LD = g++
4
OBJ =  ../../trace/src/values/*.o stub/*.o  ../../bin/*.o
5 6 7 8
DIR_SRC = ../src
DIR_STUB = stub
DIR_VALUES = ../../trace/src/values

9
OPT = -g -Wall -W -DDEBUG
10

11 12
all:	ParserPaje.o ParserEventDecoder.o  test_ligne	test_token test_parser_definition test_parser_evenement test_parser_paje

13 14 15
test_token:		test_token.cpp $(OBJ)
		$(CC) $(OPT) -o $@ $^

16 17 18
test_ligne:	test_ligne.cpp $(OBJ)
		$(CC) $(OPT) -o $@ $^

19 20 21
test_parser_definition:		test_parser_definition.cpp $(OBJ)
		$(CC) $(OPT) -o $@ $^

22 23 24
test_parser_evenement:	test_parser_event.cpp $(OBJ)
		$(CC) $(OPT) -o $@ $^

25 26 27 28 29 30 31

ParserPaje.o	:	../src/ParserPaje.cpp ../src/ParserPaje.hpp
	$(CC) -c $(OPT) ../src/ParserPaje.cpp -o ../../bin/ParserPaje.o

ParserEventDecoder.o	:	../src/ParserEventDecoder.cpp ../src/ParserEventDecoder.hpp
	$(CC) -c $(OPT) ../src/ParserEventDecoder.cpp -o ../../bin/ParserPaje.o

32
$(OBJ):
33
		@(cd $(DIR_SRC) && make allbutparser)
34 35
		@(cd $(DIR_STUB) && make)
		@(cd $(DIR_VALUES) && make)
Johnny Jazeix's avatar
Johnny Jazeix committed
36

37 38
test_parser_paje:		test_parser_paje.cpp $(OBJ)
		$(CC) $(OPT) -o $@ $^
Johnny Jazeix's avatar
Johnny Jazeix committed
39 40

clean:	
41 42 43 44
		@(cd $(DIR_SRC) && make clean)
		@(cd $(DIR_STUB) && make clean)
		@(cd $(DIR_VALUES) && make clean)
		$(RM) *.o *.*~ Makefile~
Johnny Jazeix's avatar
Johnny Jazeix committed
45