home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
332_01
/
makefile
< prev
next >
Wrap
Makefile
|
1990-04-04
|
2KB
|
88 lines
#
# Makefile for CUG101
#
# Should be relatively easy to adapt to other environments
#
CC = pc # MIX Power C
CFLAGS = /ms # Small memory model
LD = pcl
O = .mix # Object file suffix - .o on Unix
X = .exe # Executable file suffix - empty on Unix
DUMMY = Makefile # Required by some stupid make programs
I = - # Ignore compile errors
CURSES = scurses # small memory model library
CURLIB = \lib\scurses.mix # Path for dependencies
all: bugs$X euclid$X jotto$X polish$X pressup$X stone$X ttt$X yahtzee$X
clean: $(DUMMY)
del *$O
del *$X
disk: $(DUMMY)
copy bugs.c b:
copy euclid.c b:
copy jotto.c b:
copy polish.c b:
copy pressup.c b:
copy stone.c b:
copy ttt.c b:
copy yahtzee.c b:
copy getopt.c b:
copy makefile b:
bugs$X: bugs$O getopt$O $(CURLIB)
$(LD) bugs,getopt;$(CURSES)
bugs$O: bugs.c
$I$(CC) $(CFLAGS) bugs.c
euclid$X: euclid$O
$(LD) euclid$O
euclid$O: euclid.c
$I$(CC) $(CFLAGS) euclid.c
getopt$O: getopt.c
$I$(CC) $(CFLAGS) getopt.c
jotto$X: jotto$O $(CURLIB)
$(LD) jotto;$(CURSES)
jotto$O: jotto.c
$I$(CC) $(CFLAGS) jotto.c
polish$X: polish$O
$(LD) polish$O
polish$O: polish.c
$I$(CC) $(CFLAGS) polish.c
pressup$X: pressup$O getopt$O $(CURLIB)
$(LD) pressup,getopt;$(CURSES)
pressup$O: pressup.c
$I$(CC) $(CFLAGS) pressup.c
stone$X: stone$O getopt$O $(CURLIB)
$(LD) stone,getopt;$(CURSES)
stone$O: stone.c
$I$(CC) $(CFLAGS) stone.c
ttt$X: ttt$O
$(LD) ttt$O
ttt$O: ttt.c
$I$(CC) $(CFLAGS) ttt.c
yahtzee$X: yahtzee$O $(CURLIB)
$(LD) yahtzee;$(CURSES)
yahtzee$O: yahtzee.c
$I$(CC) $(CFLAGS) yahtzee.c