shithub: scc

ref: 825d523e6ae30a93224c2d6799592ae73f7ea926
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

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

clean:
	rm -f $(OBJS)
	rm -f cc2