2005-05-01 14:36:48 +02:00
|
|
|
CC=gcc
|
2005-05-01 20:04:18 +02:00
|
|
|
CCFLAGS=-c -g -I.. -DSH_DEBUG
|
2005-05-01 14:36:48 +02:00
|
|
|
|
2005-05-05 16:00:08 +02:00
|
|
|
test.bin: bin bin/main.o bin/test1.o bin/test2.o bin/test3.o bin/test4.o bin/sourcehook.o
|
|
|
|
$(CC) bin/main.o bin/test1.o bin/test2.o bin/test3.o bin/test4.o bin/sourcehook.o -lstdc++ -o test.bin
|
2005-05-01 14:36:48 +02:00
|
|
|
|
|
|
|
bin:
|
|
|
|
mkdir bin
|
|
|
|
|
|
|
|
bin/main.o: main.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/main.o main.cpp
|
2005-05-05 15:13:16 +02:00
|
|
|
|
2005-05-01 14:36:48 +02:00
|
|
|
bin/test1.o: test1.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/test1.o test1.cpp
|
2005-05-05 15:13:16 +02:00
|
|
|
|
2005-05-01 14:36:48 +02:00
|
|
|
bin/test2.o: test2.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/test2.o test2.cpp
|
|
|
|
|
2005-05-05 15:13:16 +02:00
|
|
|
bin/test3.o: test3.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/test3.o test3.cpp
|
|
|
|
|
2005-05-05 16:00:08 +02:00
|
|
|
bin/test4.o: test4.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/test4.o test4.cpp
|
|
|
|
|
2005-05-01 14:36:48 +02:00
|
|
|
bin/sourcehook.o: ../sourcehook.cpp ../sourcehook.h
|
|
|
|
$(CC) $(CCFLAGS) -o bin/sourcehook.o ../sourcehook.cpp
|
|
|
|
|
|
|
|
../sourcehook.h: ../generate/sourcehook.hxx
|
|
|
|
(cd ../generate; ./generate 16)
|