/* * Jmakefile for app (application) */ #include "../../U/runtime.H" >JMTCFLAGS ;# Where shared archive is located (path and name) LIB_RUNTIME = $(TOP)/run-time LIB_IDRS = $(TOP)/idrs LIB_SHARED = $(TOP)/ipc/shared LIB_IPCNAME = libipc.a LIB_MTIPCNAME = libmtipc.a LIB_IPC_ARCH = $(LIB_SHARED)/$(LIB_IPCNAME) LIB_MTIPC_ARCH = $(LIB_SHARED)/$(LIB_MTIPCNAME) /* 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 ;# 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 NormalObjectRule() RemoteTargetDependency(network.o,$(LIB_SHARED),$(LIB_IPCNAME)) PrelinkedRelocatableTarget(network,$(OBJ),$(LIB_IPC_ARCH)) RemoteTargetDependency(MTnetwork.o,$(LIB_SHARED),$(LIB_MTIPCNAME)) PrelinkedRelocatableTarget(MTnetwork,$(MT_OBJ),$(LIB_MTIPC_ARCH)) DependTarget() LintTarget()