######################################################################## # # MAKEFILE FOR STAND-ALONE UX CODE APPLICATION. # # EXECUTABLE is the name of the executable to be created # MAIN is the .c file containing your main() function # INTERFACES is a list of the generated C code files # APP_OBJS is a (possibly empty) list of the object code # files that form the non-interface portion of # your application # # In the first three statements, the variables on the right # of the equal sign will be replaced with their corresponding # values when the makefile is automatically generated. # # $Date: 91/11/13 16:18:36 $ $Revision: 1.18.33.6 $ ######################################################################### #DEFINITIONS SHELL = /bin/sh CC = cc RM = rm -f EXECUTABLE = $PJ_EXECUTABLE MAIN = $PJ_MAIN_SRC INTERFACES = $PJ_INTERFACES_SRC APPL_OBJS = X_LIBS = -lXm -lXt -lX11 LINC = ../../incl MINC = ../../../incl X11INC = XMINC = #DEBUG = -g STRIP = strip DEBUG = UX_LIBPATH = -L../../lib X11_LIBPATH = MOTIF_LIBPATH = X_CFLAGS = MOTIF_CFLAGS = CFLAGS = -D_NO_PROTO -I$(LINC) -I$(MINC) \ $(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \ $(XMINC) $(X11INC) HP_CPPFLAGS=$(CFLAGS) -H512000 HP_CPP = /lib/cpp HP_CPPLINE = $(HP_CPP) $(HP_CPPFLAGS) $< .cpp_$< HP_CCLINE = $(CC) $(CFLAGS) -c .cpp_$< -o $@ ; $(RM) .cpp_$< CPPLINE = CCLINE= $(CC) $(CFLAGS) -c $< XOPEN_LIBS = # The following object files are provided to work around a motif bug. # They are not necessarily needed to compile your application. LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH) LIBS = $(X_LIBS) $(XOPEN_LIBS) MIDASLIB = ../../../lib MIDASLB = $(MIDASLIB)/midaslib.a -lm OBJS = $(MAIN:.c=.o) $(INTERFACES:.c=.o) $(APPL_OBJS) # RULES: .SUFFIXES: .SUFFIXES: .o .c .c.o: $(CPPLINE) $(CCLINE) all: $(EXECUTABLE) $(EXECUTABLE): $(OBJS) $(CC) $(OBJS) $(LIBPATH) $(LIBS) $(MIDASLB) -o $(EXECUTABLE) $(STRIP) $(EXECUTABLE) @echo "done" clean: $(RM) $(OBJS) clean_exec: $(RM) $(EXECUTABLE)