minor change to makefile

This commit is contained in:
John Jones 2017-05-11 19:51:22 +00:00
parent b1845aad5f
commit d690e2093d

View file

@ -4,18 +4,18 @@ LFLAGS =
DEPS = protobuf.h
OBJS = protobuf.o varint.o
all: protobuf_reader
cd test; make all;
%.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;
test_protobuf: $(OBJS)
$(CC) -o $@ $^ $(LFLAGS)
clean:
rm -f *.o
rm -f protobuf_reader;