blob: 5fd9d00d9b065b6b3ad872426ae2db912e1d84a3 (
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
40
41
|
diff --git a/Makefile.linux b/Makefile.linux
index 65a021a..3daacd8 100755
--- 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
|