/QMK-Groundstation/branches/libMK/testing/Makefile/Makefile |
---|
0,0 → 1,30 |
CPP = g++ |
CCFLAGS = -c #-g -ansi |
LIBS = /usr/lib/libcppunit.a -L"../libMK" |
INCS = -I"./" -I"../" -I"../libMK" |
%.o : %.cpp |
$(CPP) $(CCFLAGS) -c $< |
LINKOBJ = ../libMK/*.o |
OBJ = HandlerTest.o main.o |
LIBMK = libMK |
LIBMK_DIR = ../libMK/ |
all: $(LIBMK) test |
test: $(OBJ) |
${CPP} -o test $(LINKOBJ) $(OBJ) ${LIBS} |
./test |
$(LIBMK): |
$(MAKE) -C $(LIBMK_DIR) |
main.o: main.cpp |
HandlerTest.o: HandlerTest.cpp |
#ParserTest.o: ParserTest.cpp |
clean: |
rm -f *.o test; \ |
$(MAKE) -C $(LIBMK_DIR) clean |