| 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:05 $ $Revision: 1.2 $ |
| 17 |
# |
| 18 |
# 051111 last modif |
| 19 |
######################################################################### |
| 20 |
|
| 21 |
|
| 22 |
include ../../../local/default.mk |
| 23 |
|
| 24 |
MAIN = XDo.o |
| 25 |
INTERFACES = ApplicWindow.o \ |
| 26 |
transientShell3.o \ |
| 27 |
transientShell8.o \ |
| 28 |
transientShell1.o \ |
| 29 |
SelectFrame.o \ |
| 30 |
SelectDescrTable.o \ |
| 31 |
SelectInstrument.o \ |
| 32 |
applicationShell1.o \ |
| 33 |
Classify.o \ |
| 34 |
Associate.o \ |
| 35 |
errorDialog1.o \ |
| 36 |
Association.o \ |
| 37 |
Warning.o \ |
| 38 |
HelpDo.o \ |
| 39 |
ColAttribute.o |
| 40 |
|
| 41 |
EXEC = do |
| 42 |
EXECUTABLE = ../../exec/$(EXEC).exe |
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
APPL_OBJS = alloc.o applic.o splib.o |
| 48 |
UX_DIR = ../../GraphLib/libsrc/$(UIMX) |
| 49 |
LINC = ../../incl |
| 50 |
|
| 51 |
UX_LIBPATH = -L../../lib |
| 52 |
ST_LIBPATH = ../../../stdred/lib |
| 53 |
|
| 54 |
X_CFLAGS = |
| 55 |
MOTIF_CFLAGS = |
| 56 |
|
| 57 |
CFLAGS += $(C_OPT) $(DEBUG) $(GUI_OPT) \ |
| 58 |
-I$(LINC) -I$(INC) -I$(UX_DIR)/include \ |
| 59 |
$(X_CFLAGS) $(MOTIF_CFLAGS) -DXOPEN_CATALOG \ |
| 60 |
$(XMINC) $(X11INC) |
| 61 |
|
| 62 |
# The following object files are provided to work around a motif bug. |
| 63 |
# They are not necessarily needed to compile your application. |
| 64 |
LIBPATH = $(X11_LIBPATH) $(MOTIF_LIBPATH) |
| 65 |
XLIB = $(LIBPATH) $(X_LIBS) $(XOPEN_LIBS) |
| 66 |
|
| 67 |
LLIB = $(UX_LIBPATH) -luimx -lcom -L$(ST_LIBPATH) -ldo -L$(LIBDIR) -lxcon -lctab -ltc3 -lmidas |
| 68 |
LIBS = $(LIBDIR)/libxcon.a \ |
| 69 |
$(ST_LIBPATH)/libdo.a \ |
| 70 |
$(LIBDIR)/libmidas.a |
| 71 |
|
| 72 |
OBJS = $(MAIN) $(INTERFACES) $(APPL_OBJS) |
| 73 |
|
| 74 |
all: $(EXECUTABLE) |
| 75 |
|
| 76 |
$(EXECUTABLE): $(OBJS) $(LIBS) |
| 77 |
$(LDCC) $(OBJS) $(LLIB) $(XLIB) $(MLIB) $(SLIB) -o $(EXECUTABLE) |
| 78 |
$(STRIP) $(EXECUTABLE) |
| 79 |
@echo "done" |
| 80 |
|
| 81 |
clean: |
| 82 |
$(RM) $(OBJS) |
| 83 |
|
| 84 |
clean_exec: |
| 85 |
$(RM) $(EXECUTABLE) |
| 86 |
|
| 87 |
|
| 88 |
tmp_makefile: makefile |
| 89 |
sed -e 's/^MAIN.*//' \ |
| 90 |
-e 's/^INTERFACES.*//' \ |
| 91 |
-e 's/^CMAIN/MAIN/' \ |
| 92 |
-e 's/^CINTERFACES/INTERFACES/' \ |
| 93 |
-e 's/\([^^]\)\.o/\1\.o/g' \ |
| 94 |
-e 's/^all: tmp_makefile/all:/' makefile > tmp_makefile |
| 95 |
rm -f makefile |
| 96 |
mv tmp_makefile makefile |
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|