c-protobuf/Makefile

20 lines
280 B
Makefile
Raw Normal View History

CC = gcc
CFLAGS = -O0 -g3 -Wall
LFLAGS =
DEPS = protobuf.h
2016-12-08 21:42:08 +00:00
OBJS = protobuf.o varint.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
test_protobuf: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS)
2016-12-08 21:42:08 +00:00
all: $(OBJS)
cd test; make all;
clean:
rm -f *.o
2016-12-08 21:42:08 +00:00
cd test; make clean;
rebuild: clean all