shithub: scc

ref: 47c4f8aebf11f33fa841c25d85ab33410668ea24
dir: /cc1/Makefile/

View raw version
.POSIX:

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 init.o

all: cc1


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

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

cpp: cc1
	ln -f cc1 cpp

test:
	cd tests && ./chktest.sh *.c

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