c-protobuf/Makefile

24 lines
No EOL
362 B
Makefile

CC = gcc
CFLAGS = -O0 -g3 -Wall
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