c-protobuf/Makefile
2017-03-21 14:23:31 +00:00

24 lines
372 B
Makefile

CC = gcc
CFLAGS = -O0 -g3 -Wall -std=c99
LFLAGS =
DEPS = protobuf.h
OBJS = protobuf.o varint.o
%.o: %.c $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
test_protobuf: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS)
protobuf_reader: $(OBJS) main.o
$(CC) -o $@ $^
all: protobuf_reader
cd test; make all;
clean:
rm -f *.o
rm -f protobuf_reader;
cd test; make clean;
rebuild: clean all