1
########################################################################
3
# MAKEFILE FOR STAND-ALONE UX CODE APPLICATION.
5
# EXECUTABLE is the name of the executable to be created
6
# MAIN is the .o file containing your main() function
7
# INTERFACES is a list of the generated C code files
8
# APP_OBJS is a (possibly empty) list of the object code
9
# files that form the non-interface portion of
12
# In the first three statements, the variables on the right
13
# of the equal sign will be replaced with their corresponding
14
# values when the makefile is automatically generated.
16
# $Date: 2005-11-16 14:21:04 $ $Revision: 1.2 $
19
#########################################################################
23
include ../../../local/default.mk
25
# On HP-UX the optimizer -O causes a compilation error for ApplicWindow.o
26
# Local dataflow: Out of memory
31
INTERFACES = ApplicWindow.o \
35
EXECUTABLE = ../../exec/display.exe
41
UX_DIR = ../../GraphLib/libsrc/$(UIMX)
45
UX_LIBPATH = -L../../lib
50
CFLAGS = $(C_OPT) $(DEBUG) $(GUI_OPT) \
51
-I$(LINC) -I$(INC) -I$(UX_DIR)/include \
52
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \
55
# The following object files are provided to work around a motif bug.
56
# They are not necessarily needed to compile your application.
57
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH)
58
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS)
60
LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -lxcon -lmidas
61
LIBS = $(LIBDIR)/libxcon.a \
64
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS)
68
$(EXECUTABLE): $(OBJS) $(LIBS)
69
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE)
70
$(STRIP) $(EXECUTABLE)
80
tmp_makefile: makefile
81
sed -e 's/^MAIN.*//' \
82
-e 's/^INTERFACES.*//' \
84
-e 's/^CINTERFACES/INTERFACES/' \
85
-e 's/\([^^]\)\.o/\1\.o/g' \
86
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile
88
mv tmp_makefile makefile