From 0aedd1825f7e5acbddf39d72233d28ee4c302c4c Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 3 Jun 2009 22:58:29 -0700 Subject: Makefile: build descriptor.o. --- Makefile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4d1efd7..a781fa2 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3