shithub: scc

ref: 34c0b8bd4e22a498930f2c4114d70d13032e85ff
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 cpp.o

LIBS = -lcc

all: cc1

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

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

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