source: trunk/FACT++/dim_v19r17/makefile_did@ 10358

Last change on this file since 10358 was 10358, checked in by tbretz, 14 years ago
New DIM version.
File size: 1.9 KB
Line 
1
2#
3# did makefile
4#
5
6include makefile_common
7
8SDIR = ./src/did
9
10CFLAGS += -I$(SDIR) -I$(MOTIFINC) -I$(X11INC) -L$(MOTIFLIB) -L$(X11LIB) $(EXTRAMOTIFFLAGS)
11
12EXTRAMOTIFFLAGS =
13LIBS = $(EXTRALIBS)
14MORE_FLAGS = $(EXTRALIBS) -lMrm
15
16ifeq ($(OS),SunOS)
17 MOTIFINC = /usr/motif/include
18 MOTIFLIB = /usr/motif/lib
19 X11INC = /usr/X11R5/include/X11
20 X11LIB = /usr/X11R5/lib
21 UILC = /usr/motif/bin/uil
22endif
23ifeq ($(OS),Solaris)
24 MOTIFINC = /usr/dt/include
25 MOTIFLIB = /usr/dt/lib
26 X11INC = /usr/openwin/include
27 X11LIB = /usr/openwin/lib
28 MORE_FLAGS += -lposix4
29# MORE_FLAGS += -R$(MOTIFLIB):$(X11LIB) -lMrm
30# UILC = /usr/local/motif/bin/uil
31# UILC = /usr/dt/bin/uil
32endif
33ifeq ($(OS),HP-UX)
34 MOTIFINC = /usr/include/Motif1.2
35 MOTIFLIB = /usr/lib/Motif1.2
36 X11INC = /usr/include/X11R5
37 X11LIB = /usr/lib/X11R5
38 MORE_FLAGS += -l:libMrm.a
39endif
40ifeq ($(OS),OSF1)
41 MOTIFINC = .
42 MOTIFLIB = .
43 X11INC = .
44 X11LIB = .
45endif
46ifeq ($(OS),AIX)
47 MOTIFINC = /usr/include/Motif1.2
48 MOTIFLIB = /usr/lib/Motif1.2
49 X11INC = /usr/include/X11R5
50 X11LIB = /usr/lib/X11R5
51endif
52ifeq ($(OS),Linux)
53 MOTIFINC = /usr/local/include
54 MOTIFLIB = /usr/local/lib
55 X11INC = /usr/X11R6/include
56ifeq ($(X64),yes)
57 X11LIB = /usr/X11R6/lib64
58else
59 X11LIB = /usr/X11R6/lib
60endif
61 MORE_FLAGS += -lpthread
62endif
63ifeq ($(OS),Darwin)
64 MOTIFINC = /sw/include
65 MOTIFLIB = /sw/lib
66 X11INC = /usr/X11R6/include
67 X11LIB = /usr/X11R6/lib
68endif
69
70all: $(ODIR)/did
71
72$(ODIR)/dui_util.o: $(SDIR)/dui_util.c $(SDIR)/dui_util.h
73 $(CC) $(CFLAGS) -o $(ODIR)/dui_util.o -c $(SDIR)/dui_util.c
74
75$(ODIR)/did.o: $(SDIR)/did.c $(SDIR)/did.h
76 $(CC) $(CFLAGS) -o $(ODIR)/did.o -c $(SDIR)/did.c
77
78$(ODIR)/did: $(ODIR)/did.o $(ODIR)/dui_util.o $(ODIR)/libdim.a
79 $(CC) $(CFLAGS) $(ODIR)/did.o $(ODIR)/dui_util.o $(MORE_FLAGS) -lXm -lXt -lX11 -L$(DIMDIR)/$(ODIR) -ldim -o $(ODIR)/did
80
81
82
83
84
85
86
87
Note: See TracBrowser for help on using the repository browser.