2013-05-12 19:45:55 +00:00
|
|
|
BUILDDIR = /tmp/obj
|
|
|
|
OBJDIR = $(BUILDDIR)/obj
|
|
|
|
BINDIR = $(BUILDDIR)/bin
|
|
|
|
LIBDIR = $(BUILDDIR)/lib
|
|
|
|
INCDIR = $(BUILDDIR)/include
|
|
|
|
INSDIR = $(BUILDDIR)/staging
|
|
|
|
|
|
|
|
PLATIND = $(INSDIR)/share/ack
|
|
|
|
PLATDEP = $(INSDIR)/lib/ack
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
AR = ar
|
|
|
|
RM = rm -f
|
|
|
|
CP = cp
|
|
|
|
|
|
|
|
hide = @
|
|
|
|
|
|
|
|
CFLAGS = \
|
|
|
|
-g \
|
|
|
|
-I$(INCDIR) \
|
|
|
|
-Imodules/h \
|
|
|
|
-Ih
|
|
|
|
|
|
|
|
LDFLAGS =
|
|
|
|
|
|
|
|
all: installables
|
|
|
|
|
|
|
|
.DELETE_ON_ERROR:
|
|
|
|
|
|
|
|
include first/core.mk
|
|
|
|
|
|
|
|
include modules/src/object/build.mk
|
|
|
|
include modules/src/alloc/build.mk
|
|
|
|
include modules/src/input/build.mk
|
|
|
|
include modules/src/idf/build.mk
|
|
|
|
include modules/src/system/build.mk
|
|
|
|
include modules/src/string/build.mk
|
|
|
|
include modules/src/print/build.mk
|
|
|
|
include modules/src/flt_arith/build.mk
|
|
|
|
include modules/src/em_code/build.mk
|
|
|
|
include modules/src/em_mes/build.mk
|
2013-05-12 22:51:55 +00:00
|
|
|
include modules/src/read_em/build.mk
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
include util/amisc/build.mk
|
|
|
|
include util/cmisc/build.mk
|
|
|
|
include util/ack/build.mk
|
|
|
|
include util/LLgen/build.mk
|
|
|
|
include util/data/build.mk
|
|
|
|
include util/opt/build.mk
|
|
|
|
include util/ncgg/build.mk
|
|
|
|
include util/arch/build.mk
|
2013-05-12 22:51:55 +00:00
|
|
|
include util/misc/build.mk
|
2013-05-13 22:26:15 +00:00
|
|
|
include util/led/build.mk
|
|
|
|
include util/topgen/build.mk
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
include lang/cem/build.mk
|
2013-05-14 15:11:29 +00:00
|
|
|
include lang/basic/build.mk
|
2013-05-14 19:47:04 +00:00
|
|
|
include lang/pc/build.mk
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
include mach/proto/as/build.mk
|
|
|
|
include mach/proto/ncg/build.mk
|
2013-05-13 22:26:15 +00:00
|
|
|
include mach/proto/top/build.mk
|
2013-05-12 19:45:55 +00:00
|
|
|
|
2013-05-12 22:51:55 +00:00
|
|
|
include plat/linux/liblinux/build.mk
|
|
|
|
|
2013-05-13 21:12:46 +00:00
|
|
|
include mach/i80/build.mk
|
|
|
|
include mach/i386/build.mk
|
|
|
|
include mach/i86/build.mk
|
|
|
|
include mach/m68020/build.mk
|
|
|
|
# include mach/powerpc/build.mk
|
|
|
|
|
2013-05-12 19:45:55 +00:00
|
|
|
include plat/build.mk
|
|
|
|
include plat/pc86/build.mk
|
|
|
|
include plat/cpm/build.mk
|
2013-05-12 22:51:55 +00:00
|
|
|
include plat/linux386/build.mk
|
|
|
|
include plat/linux68k/build.mk
|
2013-05-13 11:37:27 +00:00
|
|
|
# include plat/linuxppc/build.mk
|
2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
.PHONY: installables
|
|
|
|
installables: $(INSTALLABLES)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
@echo CLEAN
|
|
|
|
$(hide) $(RM) $(CLEANABLES)
|
|
|
|
|
|
|
|
$(INCDIR)/local.h:
|
|
|
|
@echo LOCAL
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
$(hide) echo '#define VERSION 3' > $@
|
|
|
|
$(hide) echo '#define ACKM "pc86"' >> $@
|
|
|
|
$(hide) echo '#define BIGMACHINE 1' >> $@
|
|
|
|
$(hide) echo '#define SYS_5' >> $@
|
|
|
|
|
|
|
|
$(INCDIR)/em_path.h:
|
|
|
|
@echo EM_PATH
|
|
|
|
@mkdir -p $(dir $@)
|
|
|
|
$(hide) echo '#define TMP_DIR "/tmp"' > $@
|
|
|
|
$(hide) echo '#define EM_DIR "/tmp/obj/staging"' >> $@
|
|
|
|
$(hide) echo '#define ACK_PATH "share/ack/descr"' >> $@
|
|
|
|
|
|
|
|
-include $(DEPENDS)
|