|
|
1.1 root 1: #
2: # Athena X window system XMenu system tests makefile.
3: #
4: # Written by: Tony Della Fera, DEC
5: # 20-Nov-85
6: #
7:
8: DESTDIR =
9: INCLUDES = -I../../include
10:
11: C2 = /lib/c2
12: CFLAGS = -O ${INCLUDES}
13: XLIB = ../../Xlib/libX.a
14: XLIB_H = ../../Xlib/Xlib.h
15: XLIB_P = ../../Xlib/libX_p.a
16:
17: .SUFFIXES: .o .h .c
18:
19: .c.o:
20: ${CC} -pg ${CFLAGS} -c $*.c
21: mv $*.o profiled/
22: ${CC} ${CFLAGS} -c $*.c
23:
24: all: posttest posttest_p \
25: rstest rstest_p \
26: acttest acttest_p \
27: deltest deltest_p \
28: instest instest_p
29:
30: #
31: # Library tests
32: #
33:
34: posttest: posttest.o ../libXMenu.a ${XLIB_H}
35: $(CC) $(CFLAGS) -o posttest posttest.o \
36: ../libXMenu.a ${XLIB}
37:
38: posttest_p: posttest.o ../libXMenu_p.a ${XLIB_H}
39: $(CC) $(CFLAGS) -pg -o posttest_p profiled/posttest.o \
40: ../libXMenu_p.a ${XLIB_P}
41:
42: rstest: rstest.o ../libXMenu.a ${XLIB_H}
43: $(CC) $(CFLAGS) -o rstest rstest.o \
44: ../libXMenu.a ${XLIB}
45:
46: rstest_p: rstest.o ../libXMenu_p.a ${XLIB_H}
47: $(CC) $(CFLAGS) -pg -o rstest_p profiled/rstest.o \
48: ../libXMenu_p.a ${XLIB_P}
49:
50: acttest: acttest.o ../libXMenu.a ${XLIB_H}
51: $(CC) $(CFLAGS) -o acttest acttest.o \
52: ../libXMenu.a ${XLIB}
53:
54: acttest_p: acttest.o ../libXMenu_p.a ${XLIB_H}
55: $(CC) $(CFLAGS) -pg -o acttest_p profiled/acttest.o \
56: ../libXMenu_p.a ${XLIB_P}
57:
58: deltest: deltest.o ../libXMenu.a ${XLIB_H}
59: $(CC) $(CFLAGS) -o deltest deltest.o \
60: ../libXMenu.a ${XLIB}
61:
62: deltest_p: deltest.o ../libXMenu_p.a ${XLIB_H}
63: $(CC) $(CFLAGS) -pg -o deltest_p profiled/deltest.o \
64: ../libXMenu_p.a ${XLIB_P}
65:
66: instest: instest.o ../libXMenu.a ${XLIB_H}
67: $(CC) $(CFLAGS) -o instest instest.o \
68: ../libXMenu.a ${XLIB}
69:
70: instest_p: instest.o ../libXMenu_p.a ${XLIB_H}
71: $(CC) $(CFLAGS) -pg -o instest_p profiled/instest.o \
72: ../libXMenu_p.a ${XLIB_P}
73:
74: #
75: # Maintenance
76: #
77:
78: lint:
79: lint -CX *.c
80:
81: ci:
82: ci -u *.[ch] Makefile
83:
84: co:
85: co -l *.[ch] Makefile
86:
87: consistent:
88: ci -l -m"Consistency check in." *.[ch] Makefile
89:
90: touch:
91: touch *.o profile/*.o
92: touch *test *test_p
93:
94: igrind:
95: igrind *.[ch] *.[ch] Makefile
96:
97: clean:
98: rm -f *.o *.a core *.[ch].[0-9]* *.bak *~ #*
99: rm -f profiled/*.o
100: rm -f posttest posttest_p
101: rm -f rstest rstest_p
102: rm -f acttest acttest_p
103: rm -f deltest deltest_p
104: rm -f instest instest_p
105:
106: ##### End of makefile #####
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.