2016-12-08 21:33:27 +00:00
|
|
|
CC = gcc
|
2017-03-21 14:23:31 +00:00
|
|
|
CFLAGS = -O0 -g3 -Wall -std=c99
|
2016-12-08 21:33:27 +00:00
|
|
|
LFLAGS =
|
|
|
|
DEPS = protobuf.h
|
2016-12-08 21:42:08 +00:00
|
|
|
OBJS = protobuf.o varint.o
|
2016-12-08 21:33:27 +00:00
|
|
|
|
2017-05-11 19:51:22 +00:00
|
|
|
all: protobuf_reader
|
|
|
|
cd test; make all;
|
|
|
|
|
2016-12-08 21:33:27 +00:00
|
|
|
%.o: %.c $(DEPS)
|
|
|
|
$(CC) -c -o $@ $< $(CFLAGS)
|
|
|
|
|
2016-12-22 18:29:09 +00:00
|
|
|
protobuf_reader: $(OBJS) main.o
|
|
|
|
$(CC) -o $@ $^
|
|
|
|
|
2017-05-11 19:51:22 +00:00
|
|
|
test_protobuf: $(OBJS)
|
|
|
|
$(CC) -o $@ $^ $(LFLAGS)
|
|
|
|
|
2016-12-08 21:33:27 +00:00
|
|
|
clean:
|
|
|
|
rm -f *.o
|
2016-12-22 18:29:09 +00:00
|
|
|
rm -f protobuf_reader;
|
2016-12-08 21:42:08 +00:00
|
|
|
cd test; make clean;
|
2016-12-08 21:33:27 +00:00
|
|
|
|
2017-03-21 14:23:31 +00:00
|
|
|
rebuild: clean all
|