ref: 76ca88468843aaf2a21a15f240d0dc37d5ae8eb6
dir: /driver/posix/Makefile/
# See LICENSE file for copyright and license details. .POSIX: include ../../config.mk LIBDIR = ../../lib/cc OBJ = scc.o HDR = config.h \ ../../inc/cc.h \ ../../inc/arg.h \ ../../inc/syslibs.h \ ../../inc/ldflags.h all: scc scpp mkdir -p ../../rootdir/bin cp scc scpp ../../rootdir/bin/ dep: PREFIX=$(PREFIX) USEQBE=$(USEQBE) ./gendep.sh $(TARGET) $(OBJ): $(HDR) scc: $(OBJ) $(LIBDIR)/libcc.a $(CC) $(SCC_LDFLAGS) $(OBJ) -lcc -o $@ scpp: cpp.sh config.h set -x ;\ trap "rm -f $$$$.sh" 0 2 3;\ rm -f $@ ;\ sed "s%@PREFIX@%$(PREFIX)%" < cpp.sh > $$$$.sh && \ chmod +x $$$$.sh && \ mv $$$$.sh scpp $(LIBDIR)/libcc.a: cd $(LIBDIR) && $(MAKE) clean: rm -f $(OBJ) rm -f scc rm -f scpp distclean: clean rm -f config.h include ../../lib/cc/libdep.mk