blob: b562f27e51d3cab9e47c4f7e46a74a20749d8ba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
--- a/Makefile.linux
+++ b/Makefile.linux
@@ -1,15 +1,15 @@
#
-CFLAGS = -I/usr/X11R6/include
+CFLAGS += -I/usr/X11R6/include
ifeq ($(MAKECMDGOALS),debug)
CFLAGS = -g -I/usr/X11R6/include
endif
-LIBS = -L/usr/lib -L/usr/X11R6/lib -lXmu -lXm -lXt -lSM -lICE -lXext -lX11
+LIBS = -L/usr/GENTOOLIBDIR -L/usr/X11R6/lib -lXmu -lXm -lXt -lSM -lICE -lXext -lX11
ifeq ($(MAKECMDGOALS),nogui)
-CFLAGS = -D NOGUI -I/usr/X11R6/include
-LIBS = -L/usr/lib -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -lXext -lX11
+CFLAGS += -D NOGUI -I/usr/X11R6/include
+LIBS = -L/usr/GENTOOLIBDIR -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -lXext -lX11
endif
FIN = -lm -pthread #for RH9.0, ok for RH7.3 & RH8.0
@@ -26,13 +26,13 @@ OBJS = PKINANGL.o PKINCRTL.o PKINCSBS.o PKINCSUB.o PKINCOUT.o PKINMENU.o PKINROT
# Commands specific to clients created by this Makefile
prekin: $(OBJS)
- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
debug: $(OBJS)
- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
nogui: $(OBJS)
- cc -o prekin $(CFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
+ cc -o prekin $(CFLAGS) $(LDFLAGS) $(OBJS) -L/usr/X11R6/lib $(LIBS) -ldl $(FIN)
clean:
rm *.o
|