home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
cthugha5
/
cthu5src
/
makefile
< prev
next >
Wrap
Makefile
|
1994-08-19
|
3KB
|
100 lines
# Cthugha 4.0 Make file
# This make file is for MSC - tested with MSVC++ 1.0
#
# I've left in alot of commented stuff, so you can see the evolution
# since it could help you when you get stuck...
#
#
#
#----------------------
# HM = \torps\cthugha
#
#
HM = .
#CC=cl -AL -c -G3 -W3 -Zp2 /f-
#CC=cl -AL -c -G3 -W3 -Zp2 /f- /Ozaxb2
#CC=cl -AL -c -G3 -W3 -Zp2 /f- /Ozaxb2 /J
#CC=cl -AL -c -G3 -W3 -Zp2 /f- /Oxzab2 /J
#CC=cl -AL -c -G3 -W3 -Zp2 /f- /J
#CC=cl -AL -c -G3 -W3 -Zp2 /f- /J /Od
#CC=cl -AL -c -G3 -W3 -Zp /f- /Oxb2n /J /Gy
#CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J /Gy
#CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J
CC=cl -AL -c -G3 -W3 -Zp /f- /Ozaxb2 /J /Gy
# LINK=link /nod /NOI
LINK=link /STACK:4000
#LIBS = \sbpro\msc\lib\embed\sbcl.lib ultra0LM.lib sb_msc.lib
#LIBS = \sbpro\msc\lib\alone\sbclr.lib
#LIBS = sb.lib
#LIBS=
#LIBS = ultra0LM.lib sb_msc.lib cd_msc.lib
LIBS = ultra0LM.lib dma.lib mvllib.lib \sbpro\msc\lib\embed\sbcl.lib
C7 = 1
LOPT = /MAP
DEF =
DDEF =
ASM = masm -ml
SRCS1 = cthugha.c modes.c audio.c \
initscrn.c getopt.c charset.c \
pete.c patch.c cdrom.c cdmaster.c
SRCS2 = zorilkey.c flames.c display.c \
maps.c mouse.c audiogus.c audiosbp.c \
cdplyr.c sb_drive.c translat.c
SRCS3 = audiosdk.c
INCLS = cthugha.h
#──────────────────────────────────────── Tool Macros #####
##### Inference Rules #####
.c.obj:
cd $(@D)
$(CC) $*.c > $*.err
type $*.err
.asm.obj:
cd $(@D)
$(ASM) $*.asm
goal: cthugha.exe
audio.obj: audio.c cthugha.h
audiogus.obj: audiogus.c cthugha.h forte.h gf1proto.h audio.h
audiosbp.obj: audiosbp.c cthugha.h sb_drive.h
cdmaster.obj: cdmaster.c cdmaster.h
cdplyr.obj: cdplyr.c zorilkey.h mouse.h cdmixrg.c sb_drive.h \
initscrn.h patch.h cthugha.h
cdrom.obj: cdrom.c cdrom.h
cthugha.obj: cthugha.c sb.h charset.h zorilkey.h initscrn.h \
maps.h audio.h mouse.h cthugha.h translat.h
display.obj: display.c cthugha.h charset.h zorilkey.h
flames.obj: flames.c cthugha.h charset.h zorilkey.h audio.h \
translat.h
initscrn.obj: initscrn.c patch.h banner.c cthu_hlp.c cdmix.c \
cthugha.h credits.c
maps.obj: maps.c sb.h cthugha.h charset.h zorilkey.h
modes.obj: modes.c cthugha.h charset.h zorilkey.h
patch.obj: patch.c patch.h
pete.obj: pete.c pete.h cthugha.h charset.h
zorilkey.obj: zorilkey.c zorilkey.h
sb_drive.obj: sb_drive.c sb_drive.h dma.h patch.h
translat.obj: translat.c cthugha.h translat.h
#────────────────────#### Main (default) Target #####
##### Dependents For Goal and Command Line #####
cthugha.exe: $(SRCS1:.c=.obj) $(SRCS2:.c=.obj) $(SRCS3:.c=.obj)
$(LINK) @<<
$(SRCS1:.c=.obj) +
$(SRCS2:.c=.obj) +
$(SRCS3:.c=.obj),
cthugha.exe,
NUL,
$(LIBS),
NUL
<<