blob: e0450de740ab016ee12c351179a82fabb002f34c (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
$FreeBSD$
--- test/Makefile.orig Sat Aug 10 13:14:54 2002
+++ test/Makefile Wed Jan 29 15:59:24 2003
@@ -1,13 +1,13 @@
#
-# Makefile fot the test programs
-# This makefile requires libXawPlus.a in the
-# parent directory !
+# Makefile for the test programs
#
# Roland Krause 2000
#
-LIB_PATH = -L/usr/X11/lib # Libraries for X
-INC_PATH = -I/usr/X11/include # Header for X
+PREFIX=%%X11BASE%%
+
+LIB_PATH = -L$(PREFIX)/lib # Libraries for X
+INC_PATH = -I$(PREFIX)/include # Header for X
LIBRARIES = -lXmu -lXext -lXt -lXpm -lX11
CC = gcc
@@ -19,32 +19,33 @@
# --- Compile the programs
-test_encoding: test_encoding.o ../libXawPlus.a
- $(CC) -o test_encoding $(LIB_PATH) test_encoding.o ../libXawPlus.a $(LIBRARIES)
+test_encoding: test_encoding.o $(PREFIX)/lib/libXawPlus.a
+ $(CC) -o test_encoding $(LIB_PATH) test_encoding.o $(PREFIX)/lib/libXawPlus.a $(LIBRARIES)
test_encoding.o:test_encoding.c
$(CC) $(FLAGS) $(INC_PATH) -c test_encoding.c
-test_pixmap: test_pixmap.o ../libXawPlus.a
- $(CC) -o test_pixmap $(LIB_PATH) test_pixmap.o ../libXawPlus.a $(LIBRARIES)
+test_pixmap: test_pixmap.o $(PREFIX)/lib/libXawPlus.a
+ $(CC) -o test_pixmap $(LIB_PATH) test_pixmap.o $(PREFIX)/lib/libXawPlus.a $(LIBRARIES)
test_pixmap.o: test_pixmap.c
$(CC) $(FLAGS) $(INC_PATH) -c test_pixmap.c
-test_scrbar: test_scrbar.o ../libXawPlus.a
- $(CC) -o test_scrbar $(LIB_PATH) test_scrbar.o ../libXawPlus.a $(LIBRARIES)
+test_scrbar: test_scrbar.o $(PREFIX)/lib/libXawPlus.a
+ $(CC) -o test_scrbar $(LIB_PATH) test_scrbar.o $(PREFIX)/lib/libXawPlus.a $(LIBRARIES)
test_scrbar.o: test_scrbar.c
$(CC) $(FLAGS) $(INC_PATH) -c test_scrbar.c
-test_menu: test_menu.o ../libXawPlus.a
- $(CC) -o test_menu $(LIB_PATH) test_menu.o ../libXawPlus.a $(LIBRARIES)
+test_menu: test_menu.o $(PREFIX)/lib/libXawPlus.a
+ $(CC) -o test_menu $(LIB_PATH) test_menu.o $(PREFIX)/lib/libXawPlus.a $(LIBRARIES)
test_menu.o: test_menu.c
$(CC) $(FLAGS) $(INC_PATH) -c test_menu.c
-
# --- Clean up
+
+.PHONY: clean
clean:
rm -f *.o $(PROGS)
|