1 # Copyright (c) 1992,1991 Carnegie Mellon University
4 # Permission to use, copy, modify and distribute this software and its
5 # documentation is hereby granted, provided that both the copyright
6 # notice and this permission notice appear in all copies of the
7 # software, derivative works or modified versions, and any portions
8 # thereof, and that both notices appear in supporting documentation.
10 # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
11 # CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
12 # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
14 # Carnegie Mellon requests users of this software to return to
16 # Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
17 # School of Computer Science
18 # Carnegie Mellon University
19 # Pittsburgh PA 15213-3890
21 # any improvements or extensions that they make and grant Carnegie the rights
22 # to redistribute these changes.
23 ######################################################################
24 # Makefile to build sup (the client side), supfilesrv (the repository
25 # side, and supscan (used by the repository. If you only want to sup
26 # files from CMU, just build sup.
27 # The header files: c.h, libc.h and sysent.h are only
28 # necessary if you are compiling on a non-Mach system. Likewise the
29 # files in libextra.a are normally found in libcs.a on a Mach system.
30 # DOPRINT_VA is used by vprintf.c and should be defined if your version
31 # of libc/doprnt.c defines the routine _doprnt_va. If it defines _doprnt
32 # instead, leave DORPINT_VA undefined.
33 ######################################################################
37 CMUCS_DEFINES = -DMACH -DDOPRINT_VA
38 NON_MACH_DEFINES = -UMACH
39 DEFS = -UCMUCS -UCMU ${${SITE}_DEFINES}
41 CFLAGS = ${DEFS} -O -I.
43 # unlicensed non-crypting version
44 NETCRYPT = netcryptvoid.o
45 # licensed, crypting version
46 #NETCRYPT = netcrypt.o
48 SUPCL = supcmain.o supcvers.o supcparse.o supcname.o \
50 SUPS = scm.o scmio.o stree.o log.o supmsg.o ${NETCRYPT}
51 EXTRA = atoo.o errmsg.o expand.o ffilecopy.o filecopy.o nxtarg.o \
52 path.o quit.o run.o salloc.o skipto.o vprintf.o
55 PROGRAMS = sup supscan supfilesrv
59 sup_OFILES = ${SUPCL} ${SUPS}
60 supfilesrv_OFILES = supfilesrv.o scan.o ${SUPS}
61 supfilesrv_LIBS = libextra.a
62 supscan_OFILES = supscan.o stree.o scan.o
67 sup: ${sup_OFILES} ${LIBS}
68 ${CC} ${CFLAGS} -o sup ${sup_OFILES} ${LIBS}
70 supfilesrv: ${supfilesrv_OFILES} ${supfilesrv_LIBS}
71 ${CC} ${CFLAGS} -o supfilesrv ${supfilesrv_OFILES} ${supfilesrv_LIBS} ${${SITE}_LIBS}
73 supscan: ${supscan_OFILES} ${LIBS}
74 ${CC} ${CFLAGS} -o supscan ${supscan_OFILES} ${LIBS}
81 rm -f ${PROGRAMS} libextra.a *.o core a.out
86 scmio.o: sup.h supmsg.h
88 supcmain.o: sup.h supmsg.h supcdefs.h
89 supcmeat.o: sup.h supmsg.h supcdefs.h
90 supcmisc.o: sup.h supmsg.h supcdefs.h
91 supcname.o: sup.h supmsg.h supcdefs.h
92 supcparse.o: sup.h supmsg.h supcdefs.h
93 supfilesrv.o: sup.h supmsg.h
94 supmsg.o: sup.h supmsg.h
96 netcryptvoid.o: sup.h supmsg.h
97 netcrypt.o: sup.h supmsg.h