home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-02-25 | 1.8 KB | 95 lines |
- #
- # makefile for accordian
- #
-
- # The high score file:
- WINFILE = /home/baggins/ericl/lib/accordian.wins
-
- # Where the program will live
- DESTDIR = /home/baggins/ericl/bin
-
- # Where the manpage will live
- MANDIR = /home/baggins/ericl/man
-
-
- # Which random number generator your system uses
- # these worked under SunOS (BSD-ish)
- RANDOM = random
- SRANDOM = srandom
- # these worked under IRIX (SysV-ish)
- #RANDOM = lrand48
- #SRANDOM = srand48
-
- # where the default pager lives
- # bsd-ish systems use;
- PAGER = /usr/ucb/more
- # irix uses:
- #PAGER = /usr/bsd/more
- # most SysV machines use:
- #PAGER = /usr/bin/more
-
-
- # compiler options
- CC = cc -arch m68k -arch i386 -arch hppa -arch sparc
-
- # these worked under SunOS
- LOCAL_CFLAGS = -g
- LOCAL_LFLAGS = -g
- LLIBS = -lcurses -ltermcap
-
- # these worked under SYS_V (SGI IRIX)
- # (note: IRIX uses "-cckr" to make the compiler like K+R C.
- # Your machine may need something different to specify this.)
- #LOCAL_CFLAGS = -g -cckr
- #LOCAL_LFLAGS = -g
- #LLIBS = -lcurses
-
-
- CFLAGS = $(LOCAL_CFLAGS) -DRANDOM=$(RANDOM) -DSRANDOM=$(SRANDOM) \
- -DACCORDIAN_WINFILE=\"$(WINFILE)\" -DDEFAULT_PAGER=\"$(PAGER)\"
- LFLAGS = $(LOCAL_LFLAGS)
-
-
- OBJS = accordian.o \
- cards.o \
- help.o
-
- accordian: $(OBJS)
- $(CC) $(LFLAGS) $(OBJS) -o $@ $(LLIBS)
-
- ## Creating manpages.
- .SUFFIXES: .6 .man
- .man.6:
- @rm -f $@
- nroff -man $< > $@
- chmod 444 $@
-
- install: accordian accordian.6
- cp accordian $(DESTDIR)
- chmod 711 $(DESTDIR)/accordian
- cp accordian.6 $(MANDIR)/accordian.6
- chmod 644 $(MANDIR)/accordian.6
-
- $(OBJS) : cards.h makefile
-
- clobber:
- make clean
- @ rm -f accordian accordian.6 accordian.sh
- clean:
- @ rm -f $(OBJS)
-
- #
- # all the stuff that gets packed into the archive file
- #
- SHARSTUFF = \
- README \
- makefile \
- accordian.c \
- help.c \
- cards.c \
- cards.h \
- accordian.man
-
- shar:
- shar $(SHARSTUFF) > accordian.sh
-