| 1 |
######################################################################## |
| 2 |
# |
| 3 |
# MAKEFILE FOR STAND-ALONE UX CODE APPLICATION. |
| 4 |
# |
| 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 |
| 10 |
# your application |
| 11 |
# |
| 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. |
| 15 |
# |
| 16 |
# $Date: 2005-11-16 14:21:03 $ $Revision: 1.2 $ |
| 17 |
# |
| 18 |
# 051111 last modif |
| 19 |
######################################################################### |
| 20 |
|
| 21 |
|
| 22 |
include ../../../local/default.mk |
| 23 |
|
| 24 |
|
| 25 |
MAIN = XBatchred.o |
| 26 |
INTERFACES = ApplicWindow.o \ |
| 27 |
sh_airmass.o \ |
| 28 |
file_list.o \ |
| 29 |
file_dialog.o \ |
| 30 |
HelpShell.o |
| 31 |
|
| 32 |
EXEC = batchred |
| 33 |
EXECUTABLE = ../../exec/$(EXEC).exe |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
APPL_OBJS = execute.o airmass.o batchform.o cb_list.o misc.o |
| 39 |
|
| 40 |
UX_DIR = ../../GraphLib/libsrc/$(UIMX) |
| 41 |
|
| 42 |
LINC = ../../incl |
| 43 |
|
| 44 |
UX_LIBPATH = -L../../lib |
| 45 |
|
| 46 |
X_CFLAGS = |
| 47 |
MOTIF_CFLAGS = |
| 48 |
|
| 49 |
CFLAGS += $(C_OPT) $(DEBUG) $(GUI_OPT) \ |
| 50 |
-I$(LINC) -I$(INC) -I$(UX_DIR)/include \ |
| 51 |
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \ |
| 52 |
$(XMINC) $(X11INC) |
| 53 |
|
| 54 |
# The following object files are provided to work around a motif bug. |
| 55 |
# They are not necessarily needed to compile your application. |
| 56 |
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH) |
| 57 |
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS) |
| 58 |
|
| 59 |
LLIB = $(UX_LIBPATH) -luimx -lcom -L$(LIBDIR) -lxcon -lmidas |
| 60 |
|
| 61 |
LIBS = $(LIBDIR)/libxcon.a \ |
| 62 |
$(LIBDIR)/libmidas.a |
| 63 |
|
| 64 |
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) |
| 65 |
|
| 66 |
all: $(EXECUTABLE) |
| 67 |
|
| 68 |
$(EXECUTABLE): $(OBJS) $(LIBS) |
| 69 |
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE) |
| 70 |
$(STRIP) $(EXECUTABLE) |
| 71 |
@echo "done" |
| 72 |
|
| 73 |
clean: |
| 74 |
$(RM) $(OBJS) |
| 75 |
|
| 76 |
clean_exec: |
| 77 |
$(RM) $(EXECUTABLE) |
| 78 |
|
| 79 |
|
| 80 |
tmp_makefile: makefile |
| 81 |
sed -e 's/^MAIN.*//' \ |
| 82 |
-e 's/^INTERFACES.*//' \ |
| 83 |
-e 's/^CMAIN/MAIN/' \ |
| 84 |
-e 's/^CINTERFACES/INTERFACES/' \ |
| 85 |
-e 's/\.o/\.o/g' \ |
| 86 |
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile |
| 87 |
rm -f makefile |
| 88 |
mv tmp_makefile makefile |
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|