shithub: scc

ref: 68111eb68c383a0a0166b452ba5b4e7c50afb5a0
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)/scc/cc1

all: $(TARGET)

$(TARGET): $(LIBSCC) $(OBJS)
	$(CC) $(PROJ_LDFLAGS) $(OBJS) -lscc -o $@

include deps.mk