From 462b26c1cc041a8fa26deb62cf12f1f351a5b2f6 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 8 Jul 2009 12:06:47 -0700 Subject: Directory restructuring. --- Makefile | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7a825dd..e79630b 100644 --- a/Makefile +++ b/Makefile @@ -3,18 +3,20 @@ CC=gcc CXX=g++ CFLAGS=-std=c99 -CPPFLAGS=-O3 -Wall -Wextra -pedantic -g -DUPB_UNALIGNED_READS_OK -fomit-frame-pointer -OBJ=upb_parse.o upb_table.o upb_msg.o upb_enum.o upb_context.o upb_string.o descriptor.o -all: $(OBJ) test_table tests upbc +CPPFLAGS=-O3 -Wall -Wextra -pedantic -g -DUPB_UNALIGNED_READS_OK -fomit-frame-pointer -Idescriptor -Isrc +OBJ=src/upb_parse.o src/upb_table.o src/upb_msg.o src/upb_enum.o src/upb_context.o \ + src/upb_string.o descriptor/descriptor.o +ALL=$(OBJ) src/libupb.a tests/test_table tests/tests tools/upbc +all: $(ALL) clean: - rm -f *.o test_table tests + rm -f $(ALL) deps -libupb.a: $(OBJ) - ar rcs libupb.a $(OBJ) -test_table: libupb.a -upbc: libupb.a -benchmark: libupb.a -lm +src/libupb.a: $(OBJ) + ar rcs src/libupb.a $(OBJ) +tests/test_table: src/libupb.a +tools/upbc: src/libupb.a +benchmark/benchmark: src/libupb.a -lm -include deps -deps: *.c *.h +deps: src/*.c src/*.h descriptor/*.c descriptor/*.h tests/*.c tests/*.h tools/*.c tools/*.h gcc -MM *.c > deps -- cgit v1.2.3