1 --- Makefile.orig Wed Apr 13 09:22:21 1994
2 +++ Makefile Mon Jun 28 15:57:11 1999
8 -DBGFG= -g -DDEBUG -DMALLOC_DEBUG
27 -CFILES= `echo $(OFILES) | sed 's/\.o/.c/g'`
28 -DEBUGLIB= /usr/lib/debug/malloc.o /usr/lib/debug/mallocmap.o $(LIB)
31 - cc $(CFLAGS) -o $(XMX) $(OFILES) $(LIB)
32 +LIBPATH = -L${LOCALBASE}/lib
33 +INCPATH = -I${LOCALBASE}/include
36 - make xmxd CFLAGS="$(DBGFG)" LIB="$(DEBUGLIB)"
39 - make xmx CFLAGS="$(OPTFG)"
44 +MANPATH = ${PREFIX}/man
46 +OBJ = bufio.o connect.o error.o genreq.o main.o map.o \
47 + pointer.o reply.o request.o resource.o socket.o
51 +# -02 = enable all optimazions
52 +# -s = make output smaller (without debug/link-informations)
55 +# if yu dont have "gcc" use instead of "gcc" "cc"
60 +$(TARGET_FILE): $(OBJ)
61 + $(CC) $(OPTION) -o $(TARGET_FILE) $(OBJ) $(LIBPATH) $(INCPATH) $(LIB)
63 + $(CC) $(OPTION) -c bufio.c $(LIBPATH) $(INCPATH)
65 + $(CC) $(OPTION) -c connect.c $(LIBPATH) $(INCPATH)
67 + $(CC) $(OPTION) -c error.c $(LIBPATH) $(INCPATH)
69 + $(CC) $(OPTION) -c genreq.c $(LIBPATH) $(INCPATH)
71 + $(CC) $(OPTION) -c main.c $(LIBPATH) $(INCPATH)
73 + $(CC) $(OPTION) -c map.c $(LIBPATH) $(INCPATH)
75 + $(CC) $(OPTION) -c pointer.c $(LIBPATH) $(INCPATH)
77 + $(CC) $(OPTION) -c reply.c $(LIBPATH) $(INCPATH)
79 + $(CC) $(OPTION) -c request.c $(LIBPATH) $(INCPATH)
80 +resource.o: resource.c
81 + $(CC) $(OPTION) -c resource.c $(LIBPATH) $(INCPATH)
83 + $(CC) $(OPTION) -c socket.c $(LIBPATH) $(INCPATH)
86 - rm -f *.o xmx xmxd core
89 - cp $(CFILES) xmx.h resource.h Makefile xmx.1 README doc/lab.me /cs/src/xmx
95 - @echo $(CFILES) xmx.h resource.h
98 - cc -g -o listhost listhost.c -lX
100 -testhash: testhash.o hash.o error.o
101 - cc -g -o testhash testhash.o hash.o error.o
103 -testsocket: testsocket.o socket.o error.o
104 - cc -g -o testsocket testsocket.o socket.o error.o
106 -xcoltest: xcoltest.o
107 - cc -g -o xcoltest xcoltest.o -lX11
109 -xcmaptest: xcmaptest.o
110 - cc -g -o xcmaptest xcmaptest.o -lX11
113 - cc -g -o onecol onecol.o -lX11
114 + rm -f *.o xmx xmxd *.core
116 -genreq.o resource.o: resource.h
120 + cp xmx.1 $(MANPATH)/man1
121 + chmod 755 $(BIN)/xmx