From 0c80c384756a48d5f731eeafa62b6cd5f3861749 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 25 May 2009 18:31:27 -0700 Subject: A flurry of activity. Doesn't compile yet. - a descriptor.c that describes the data structures in descriptor.proto using the data structures in descriptor.h. - everything renamed pbstream -> upb. - modularization rethought. - Doesn't compile yet, but should once things settle back down. --- Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index b82f9e0..eb2f10d 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,19 @@ .PHONY: all clean CFLAGS=-std=c99 -O3 -Wall -Wextra -pedantic -all: pbstream.o tests +OBJ=upb_parse.o upb_fieldmap.o upb_struct.o +all: $(OBJ) tests clean: - rm -f pbstream.o pbstruct.o tests + rm -f $(OBJ) tests -pbstream.o: pbstream.c pbstream.h - gcc $(CFLAGS) -o pbstream.o -c pbstream.c +upb_parse.o: upb_parse.c upb_parse.h + gcc $(CFLAGS) -o upb_parse.o -c upb_parse.c -tests: tests.c pbstream.c pbstream.h +upb_fieldmap.o: upb_fieldmap.c upb_fieldmap.h + gcc $(CFLAGS) -o upb_fieldmap.o -c upb_fieldmap.c + +upb_struct.o: upb_struct.c upb_struct.h + gcc $(CFLAGS) -o upb_struct.o -c upb_struct.c + +tests: tests.c upb_parse.c upb_parse.h gcc $(CFLAGS) -o tests tests.c -- cgit v1.2.3