shithub: scc

ref: ca4dc0e4231ef4fa8cd322fd21beb4a99e6a0fac
dir: /cc1/Makefile/

View raw version
include ../config.mk

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

all: cc1

.POSIX:

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

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

test:
	cd tests && ./chktest.sh

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