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