c-protobuf/Makefile

25 lines
372 B
Makefile
Raw Normal View History

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