home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-09-06 | 1.7 KB | 73 lines |
- #
- # Makefile for UTREE
- # klin, Mon Feb 24 00:02:38 1992
- #
- # @(#) utree 3.03-um (klin) Feb 23 1992 Makefile
- #
- # Version: PCS Cadmus 9600 (MC68020), MUNIX V3M3.2 (SYSV.3)
-
- # Compiler flags, loader flags and libraries
- CFLAGS= -O
- MFLAGS= -fH
- LFLAGS=
- LIBS= -lcurses_s
- MLIBS= -lm
- # Additional local libraries
- LLIBS= -lc_s -lbsd
-
- # --------------------------------------------------------------------- #
-
- # Some needed commands to create utree
- CC= cc
- CP= cp
- STRIP= strip
-
- # --------------------------------------------------------------------- #
-
- # Utree executables
- UTREE= ../bin/utree
- UTPRL= ../bin/utree.prlist
-
- # --------------------------------------------------------------------- #
-
- # Utree header files
- DEFS= conf.h cmds.h defs.h help.h hist.h keys.h list.h term.h vars.h
-
- # Utree sources and objects
- SRCS= main.c bind.c comm.c echo.c edit.c file.c help.c hist.c list.c \
- stat.c term.c tree.c util.c vars.c vers.c
- OBJS= main.o bind.o comm.o echo.o edit.o file.o help.o hist.o list.o \
- stat.o term.o tree.o util.o vars.o vers.o
-
- # --------------------------------------------------------------------- #
-
- all: utree utree.prlist
-
- utree: $(UTREE)
-
- strip: $(UTREE)
- $(CP) $(UTREE) $(UTREE)+sym
- $(STRIP) $(UTREE)
-
- utree.prlist: $(UTPRL)
-
- # Compile and link utree
- $(UTREE): $(OBJS)
- $(CC) $(CFLAGS) $(LFLAGS) $(OBJS) -o $@ $(LIBS) $(LLIBS)
-
- # Compile and link utree.prlist
- $(UTPRL): utree.prlist.c
- $(CC) -s $(CFLAGS) $(MFLAGS) $(LFLAGS) $? -o $@ $(MLIBS) $(LIBS) $(LLIBS)
-
- # Clean up
- clean:
- rm -f core *.o
-
- # --------------------------------------------------------------------- #
-
- $(OBJS): $(DEFS)
- $(CC) $(CFLAGS) -c $<
-
- # --------------------------------------------------------------------- #
-
-