shithub: scc

ref: c1b4b8354a76cc8c9aa13757e8b3db8d1b5a7c39
dir: /src/cmd/cc/cc1/Makefile/

View raw version
.POSIX:

PROJECTDIR = ../../../..
include $(PROJECTDIR)/scripts/rules.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 \
	builtin.o \
	arch.o\
	amd64-sysv.o\
	arm64-sysv.o \
	i386-sysv.o \
	z80-scc.o\

TARGET   = $(LIBEXEC)/cc1

all: $(TARGET)

$(TARGET): $(LIBDIR)/libscc.a $(OBJS)
	$(CC) $(SCC_LDFLAGS) $(OBJS) -lscc -o $@

dep: inc-dep

include deps.mk