2016-12-08 21:42:08 +00:00
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -O0 -g3 -Wall -I../
|
|
|
|
LFLAGS =
|
|
|
|
DEPS = ../protobuf.h
|
2016-12-09 10:58:34 +00:00
|
|
|
OBJS = testit.o ../protobuf.o ../varint.o Test1_protobuf.o Test2_protobuf.o Test3_protobuf.o
|
2016-12-08 21:42:08 +00:00
|
|
|
|
|
|
|
%.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
|