|
|
1.1 ! root 1: # ! 2: # Athena X window system XMenu system makefile. ! 3: # ! 4: # Written by: Tony Della Fera, DEC ! 5: # ! 6: ! 7: DESTDIR = ! 8: INCLUDES = -I../include ! 9: ! 10: C2 = /lib/c2 ! 11: CFLAGS = -O ${INCLUDES} ! 12: XLIB = ../Xlib/libX.a ! 13: XLIB_H = ../Xlib/Xlib.h ! 14: XLIB_P = ../Xlib/libX_p.a ! 15: ! 16: .SUFFIXES: .o .h .c ! 17: ! 18: #.c.o: ! 19: # ${CC} -pg ${CFLAGS} -c -S $*.c ! 20: # ${C2} $*.s | ../inline/inline | ${AS} -o $*.o ! 21: # rm -f $*.s ! 22: # -ld -X -r $*.o ! 23: # mv a.out profiled/$*.o ! 24: # ${CC} ${CFLAGS} -c -S $*.c ! 25: # ${C2} $*.s | ../inline/inline | ${AS} -o $*.o ! 26: # rm -f $*.s ! 27: # -ld -x -r $*.o ! 28: # mv a.out $*.o ! 29: ! 30: .c.o: ! 31: ${CC} -pg ${CFLAGS} -c $*.c ! 32: mv $*.o profiled/ ! 33: ${CC} ${CFLAGS} -c $*.c ! 34: ! 35: SRCS = XMenuInternal.c \ ! 36: XMenuCreate.c \ ! 37: XMenuAddPane.c \ ! 38: XMenuAddSel.c \ ! 39: XMenuInsPane.c \ ! 40: XMenuInsSel.c \ ! 41: XMenuFindPane.c \ ! 42: XMenuFindSel.c \ ! 43: XMenuChgPane.c \ ! 44: XMenuChgSel.c \ ! 45: XMenuSetPane.c \ ! 46: XMenuSetSel.c \ ! 47: XMenuRecomp.c \ ! 48: XMenuEvHand.c \ ! 49: XMenuLocate.c \ ! 50: XMenuSetFrz.c \ ! 51: XMenuSetAEQ.c \ ! 52: XMenuActivate.c \ ! 53: XMenuPost.c \ ! 54: XMenuDelPane.c \ ! 55: XMenuDelSel.c \ ! 56: XMenuDestroy.c \ ! 57: XMenuError.c ! 58: ! 59: OBJS = XMenuInternal.o \ ! 60: XMenuCreate.o \ ! 61: XMenuAddPane.o \ ! 62: XMenuAddSel.o \ ! 63: XMenuInsPane.o \ ! 64: XMenuInsSel.o \ ! 65: XMenuFindPane.o \ ! 66: XMenuFindSel.o \ ! 67: XMenuChgPane.o \ ! 68: XMenuChgSel.o \ ! 69: XMenuSetPane.o \ ! 70: XMenuSetSel.o \ ! 71: XMenuRecomp.o \ ! 72: XMenuEvHand.o \ ! 73: XMenuLocate.o \ ! 74: XMenuSetFrz.o \ ! 75: XMenuSetAEQ.o \ ! 76: XMenuActivate.o \ ! 77: XMenuPost.o \ ! 78: XMenuDelPane.o \ ! 79: XMenuDelSel.o \ ! 80: XMenuDestroy.o \ ! 81: XMenuError.o ! 82: ! 83: all: lib ! 84: sys: lib tests ! 85: lib: libXMenu.a libXMenu_p.a ! 86: ! 87: # ! 88: # Library construction ! 89: # ! 90: ! 91: $(OBJS): XMenu.h XMenuInternal.h ! 92: ! 93: XMenuCreate.o: ../bitmaps/dimple1.bitmap \ ! 94: ../bitmaps/dimple3.bitmap \ ! 95: ../bitmaps/gray1.bitmap \ ! 96: ../bitmaps/gray3.bitmap \ ! 97: ../bitmaps/cross_weave.bitmap \ ! 98: ../cursors/left_ptr.cursor \ ! 99: ../cursors/left_ptr_mask.cursor\ ! 100: ../cursors/right_ptr.cursor\ ! 101: ../cursors/right_ptr_mask.cursor\ ! 102: ../cursors/center_ptr.cursor\ ! 103: ../cursors/center_ptr_mask.cursor ! 104: ! 105: libXMenu.a: $(OBJS) ! 106: ar cr libXMenu.a $(OBJS) ! 107: @ranlib libXMenu.a ! 108: ! 109: libXMenu_p.a: $(OBJS) ! 110: cd profiled; ar cr ../libXMenu_p.a $(OBJS) ! 111: @ranlib libXMenu_p.a ! 112: ! 113: # ! 114: # Library tests ! 115: # ! 116: ! 117: tests: libXMenu.a libXMenu_p.a ! 118: cd tests; make ! 119: ! 120: # ! 121: # Maintenance ! 122: # ! 123: ! 124: install: all ! 125: cp libXMenu.a ${DESTDIR}/usr/lib ! 126: @ranlib ${DESTDIR}/usr/lib/libXMenu.a ! 127: cp libXMenu_p.a ${DESTDIR}/usr/lib ! 128: @ranlib ${DESTDIR}/usr/lib/libXMenu_p.a ! 129: ! 130: lint: ! 131: lint -CX *.c ! 132: ! 133: ci: ! 134: ci -u *.[ch] Makefile ! 135: ! 136: co: ! 137: co -l *.[ch] Makefile ! 138: ! 139: consistent: ! 140: ci -l -m"Consistency check in." *.[ch] Makefile ! 141: cd tests; make consistent ! 142: ! 143: touch: ! 144: touch *.o profiled/*.o ! 145: touch *.a ! 146: ! 147: igrind: ! 148: igrind *.[ch] Makefile ! 149: cd tests; make igrind ! 150: ! 151: clean: ! 152: rm -f *.o *.a core *.[ch].[0-9]* *.bak *~ #* ! 153: rm -f profiled/*.o ! 154: cd tests; make clean ! 155: ! 156: include: XMenu.h ! 157: install -c -m 0644 XMenu.h ${DESTDIR}/usr/include/X ! 158: ! 159: ##### End of makefile #####
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.