parent
d1f78c88fa
commit
0aedd1825f
1 changed files with 9 additions and 5 deletions
@ -1,19 +1,23 @@ |
|||||||
|
|
||||||
.PHONY: all clean |
.PHONY: all clean |
||||||
|
CC=gcc
|
||||||
CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic
|
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) |
all: $(OBJ) |
||||||
clean: |
clean: |
||||||
rm -f $(OBJ) tests
|
rm -f $(OBJ) tests
|
||||||
|
|
||||||
upb_parse.o: upb_parse.c upb_parse.h |
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 |
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 |
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 |
tests: tests.c upb_parse.c upb_parse.h |
||||||
gcc $(CFLAGS) -o tests tests.c
|
$(CC) $(CFLAGS) -o tests tests.c
|
||||||
|
Loading…
Reference in new issue