shithub: scc

ref: a115b80c0660473027f0a4ae009b7534e8d5f8d8
dir: /rules.mk/

View raw version
include $(PROJECTDIR)/config.mk

BINDIR     = $(PROJECTDIR)/rootdir/bin
INCDIR     = $(PROJECTDIR)/inc
LIBEXEC    = $(PROJECTDIR)/rootdir/libexec/scc
LIBSCC     = $(PROJECTDIR)/lib/scc
LIBCOFF32  = $(PROJECTDIR)/lib/coff32

SCC_CFLAGS = $(MORECFLAGS) $(SYSCFLAGS) -g $(CFLAGS)

SCC_LDFLAGS = $(MORELFLAGS) -L$(LIBSCC) -g $(LDFLAGS)

# helper macro to run over all the directories
FORALL = +@set -e ;\
	pwd=$$PWD; \
	for i in $(DIRS); \
	do \
		cd $$i; \
		$(MAKE) $@; \
		cd $$pwd; \
	done

.s.o:
	$(AS) $< -o $@

.c.o:
	$(CC) $(SCC_CFLAGS) -o $@ -c $<

all:
dep:
clean:
distclean: clean
FORCE: