1 |
|
---|
2 | #
|
---|
3 | # did makefile
|
---|
4 | #
|
---|
5 |
|
---|
6 | include makefile_common
|
---|
7 |
|
---|
8 | SDIR = ./src/did
|
---|
9 |
|
---|
10 | CFLAGS += -I$(SDIR) -I$(MOTIFINC) -I$(X11INC) -L$(MOTIFLIB) -L$(X11LIB) $(EXTRAMOTIFFLAGS)
|
---|
11 |
|
---|
12 | EXTRAMOTIFFLAGS =
|
---|
13 | LIBS = $(EXTRALIBS)
|
---|
14 | MORE_FLAGS = $(EXTRALIBS) -lMrm
|
---|
15 |
|
---|
16 | ifeq ($(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
|
---|
22 | endif
|
---|
23 | ifeq ($(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
|
---|
32 | endif
|
---|
33 | ifeq ($(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
|
---|
39 | endif
|
---|
40 | ifeq ($(OS),OSF1)
|
---|
41 | MOTIFINC = .
|
---|
42 | MOTIFLIB = .
|
---|
43 | X11INC = .
|
---|
44 | X11LIB = .
|
---|
45 | endif
|
---|
46 | ifeq ($(OS),AIX)
|
---|
47 | MOTIFINC = /usr/include/Motif1.2
|
---|
48 | MOTIFLIB = /usr/lib/Motif1.2
|
---|
49 | X11INC = /usr/include/X11R5
|
---|
50 | X11LIB = /usr/lib/X11R5
|
---|
51 | endif
|
---|
52 | ifeq ($(OS),Linux)
|
---|
53 | MOTIFINC = /usr/local/include
|
---|
54 | MOTIFLIB = /usr/local/lib
|
---|
55 | X11INC = /usr/X11R6/include
|
---|
56 | ifeq ($(X64),yes)
|
---|
57 | X11LIB = /usr/X11R6/lib64
|
---|
58 | else
|
---|
59 | X11LIB = /usr/X11R6/lib
|
---|
60 | endif
|
---|
61 | MORE_FLAGS += -lpthread
|
---|
62 | endif
|
---|
63 | ifeq ($(OS),Darwin)
|
---|
64 | MOTIFINC = /sw/include
|
---|
65 | MOTIFLIB = /sw/lib
|
---|
66 | X11INC = /usr/X11R6/include
|
---|
67 | X11LIB = /usr/X11R6/lib
|
---|
68 | endif
|
---|
69 |
|
---|
70 | all: $(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 |
|
---|