diff options
-rw-r--r-- | Makefile | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,19 +1,23 @@ .PHONY: all clean +CC=gcc CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic -OBJ=upb_parse.o upb_table.o upb_struct.o +OBJ=upb_parse.o upb_table.o upb_struct.o descriptor.o all: $(OBJ) clean: rm -f $(OBJ) tests upb_parse.o: upb_parse.c upb_parse.h - gcc $(CFLAGS) -o upb_parse.o -c upb_parse.c + $(CC) $(CFLAGS) -o upb_parse.o -c upb_parse.c upb_table.o: upb_table.c upb_table.h - gcc $(CFLAGS) -o upb_table.o -c upb_table.c + $(CC) $(CFLAGS) -o upb_table.o -c upb_table.c upb_struct.o: upb_struct.c upb_struct.h - gcc $(CFLAGS) -o upb_struct.o -c upb_struct.c + $(CC) $(CFLAGS) -o upb_struct.o -c upb_struct.c + +descriptor.o: descriptor.c descriptor.h + $(CC) $(CFLAGS) -o descriptor.o -c descriptor.c tests: tests.c upb_parse.c upb_parse.h - gcc $(CFLAGS) -o tests tests.c + $(CC) $(CFLAGS) -o tests tests.c |