shithub: scc

ref: afa081af77e19c67b8ded5203f8bed341af1cba6
dir: /cc1/Makefile/

View raw version

OBJS = types.o decl.o lex.o error.o symbol.o main.o expr.o \
	code.o stmt.o

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

all: cc1

$(OBJS) : cc1.h ../inc/cc.h ../inc/sizes.h

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

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