home *** CD-ROM | disk | FTP | other *** search
Makefile | 1986-11-30 | 2.2 KB | 96 lines |
- #
- # Makefile for wm
- #
-
- # Flags for the C compiler.
- CFLAGS = -O
-
- # Flags for loader. You probably do not need any.
- LDFLAGS =
-
- # Final resting place of wm executable.
- BIN = /usr/local
-
- # Name of owner and group that you want installed wm to have.
- OWNER = bin
- GROUP = bin
-
- # Version of libcurses wm is linked with. This *must* be
- # the version that is distributed with wm, since it contains
- # several bug fixes necessary to the correct operation of wm.
- LIBS = -lcurses -ltermcap
-
- OBJS = cmd.o curses.o getch.o hacks.o help.o misc.o \
- save.o shell.o vterm.o wlist.o wm.o
- SRCS = cmd.c curses.c getch.c hacks.c help.c misc.c \
- save.c shell.c vterm.c wlist.c wm.c
-
- wm: $(OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o wm
-
- $(OBJS): wm.h
-
- lint:
- lint -hbux $(SRCS)
-
- clean:
- /bin/rm -f *.o wm core *.out
-
- install: wm
- install -o $(OWNER) -g $(GROUP) -s wm $(DESTDIR)/$(BIN)
-
- depend:
- cat </dev/null >x.c
- for i in ${SRCS}; do \
- (echo `basename $$i .c`.o: $$i >>makedep; \
- /bin/grep '^#[ ]*include' x.c $$i | sed \
- -e 's,<\(.*\)>,"/usr/include/\1",' \
- -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
- -e 's/\.c/.o/' >>makedep); done
- echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
- echo '$$r makedep' >>eddep
- echo 'w' >>eddep
- cp Makefile Makefile.bak
- ed - Makefile < eddep
- rm eddep makedep x.c
- echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
- echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
- echo '# see make depend above' >> Makefile
-
- # DO NOT DELETE THIS LINE -- make depend uses it
-
- cmd.o: cmd.c
- cmd.o: wm.h
- curses.o: curses.c
- curses.o: wm.h
- getch.o: getch.c
- getch.o: wm.h
- getch.o: /usr/include/signal.h
- getch.o: /usr/include/setjmp.h
- getch.o: /usr/include/sys/time.h
- hacks.o: hacks.c
- hacks.o: wm.h
- help.o: help.c
- help.o: wm.h
- misc.o: misc.c
- misc.o: wm.h
- save.o: save.c
- save.o: wm.h
- shell.o: shell.c
- shell.o: wm.h
- shell.o: /usr/include/signal.h
- shell.o: /usr/include/errno.h
- vterm.o: vterm.c
- vterm.o: wm.h
- wlist.o: wlist.c
- wlist.o: wm.h
- wm.o: wm.c
- wm.o: wm.h
- wm.o: /usr/include/signal.h
- wm.o: /usr/include/sys/wait.h
- wm.o: /usr/include/sys/time.h
- wm.o: /usr/include/sys/resource.h
- # DEPENDENCIES MUST END AT END OF FILE
- # IF YOU PUT STUFF HERE IT WILL GO AWAY
- # see make depend above
-