Moved tests to seperate directory
This commit is contained in:
parent
016d4e26df
commit
69a6f1516f
9 changed files with 24 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -2,7 +2,7 @@ CC = gcc
|
|||
CFLAGS = -O0 -g3 -Wall
|
||||
LFLAGS =
|
||||
DEPS = protobuf.h
|
||||
OBJS = testit.o protobuf.o varint.o Test1_protobuf.o Test2_protobuf.o
|
||||
OBJS = protobuf.o varint.o
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
@ -10,10 +10,11 @@ OBJS = testit.o protobuf.o varint.o Test1_protobuf.o Test2_protobuf.o
|
|||
test_protobuf: $(OBJS)
|
||||
$(CC) -o $@ $^ $(LFLAGS)
|
||||
|
||||
all: test_protobuf
|
||||
|
||||
all: $(OBJS)
|
||||
cd test; make all;
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f test_protobuf
|
||||
cd test; make clean;
|
||||
|
||||
rebuild: clean all
|
19
test/Makefile
Normal file
19
test/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
CC = gcc
|
||||
CFLAGS = -O0 -g3 -Wall -I../
|
||||
LFLAGS =
|
||||
DEPS = ../protobuf.h
|
||||
OBJS = testit.o ../protobuf.o ../varint.o Test1_protobuf.o Test2_protobuf.o
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
$(CC) -c -o $@ $< $(CFLAGS)
|
||||
|
||||
test_protobuf: $(OBJS)
|
||||
$(CC) -o $@ $^ $(LFLAGS)
|
||||
|
||||
all: test_protobuf
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
rm -f test_protobuf
|
||||
|
||||
rebuild: clean all
|
Loading…
Reference in a new issue