/* * Jmakefile for app (application) */ #include "../../U/runtime.H" ;# Where shared archive is located (path and name) LIB_RUNTIME = $(TOP)/run-time LIB_IDRS = $(TOP)/idrs LIB_SHARED = $(TOP)/ipc/shared /* The following are understood by jmake to alter built-in commands */ DPFLAGS = -I$(TOP) -I$(LIB_SHARED) -I$(LIB_RUNTIME) -I$(LIB_IDRS) -I$(LIB_RUNTIME)/include CFLAGS = $(DPFLAGS) -DWORKBENCH -DEIF_IPC /* We need to have the shared archive, which is in the shared/ dir. We have a * dependency which ensures it is up-to-date anyway. */ ;# Files used to build the application LSRC = app_listen.c app_proto.c app_server.c app_transfer.c ;# Derived object file names OBJ = \ |expand f!$(LSRC)! !f:\.c=.o \ -expand \\ ;# Derived library object file names MT_OBJ = \ |expand f!$(LSRC)! MT!f:\.c=.o \ -expand \\ |expand f!$(LSRC)! MT!f:\.c=.o: !f $(CC) -c $(JMTCFLAGS) -DWORKBENCH -DEIF_IPC $? -o $@ -expand AddSource($(LSRC)) NormalObjectRule() NormalRelocatableTarget(network,$(OBJ)) NormalRelocatableTarget(MTnetwork,$(MT_OBJ)) DependTarget() LintTarget()