shithub: scc

ref: 9197be5ac4cb884d119aed4d5b0c66d602c9614b
dir: /cc2/Makefile/

View raw version

OBJS = main.o parser.o cgen.o

CPPFLAGS = -I../inc
LDFLAGS = -L../lib
LIBS = -lcc

all: cc2

$(OBJS): ../inc/cc.h ../inc/sizes.h cc2.h
main.o: error.h

error.h: cc2.h
	./generror cc2.h > $@
			
cc2: $(OBJS) ../lib/libcc.a
	$(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) $(LIBS) -o $@

clean:
	rm -f $(OBJS)
	rm -f cc2 error.h