51 lines
1 KiB
Makefile
51 lines
1 KiB
Makefile
|
NAME = ffdonuts
|
||
|
EXT = exe
|
||
|
GLOBAL_RECOMPILE = $(DXROOT)\recompdd.log
|
||
|
|
||
|
IS_32 = 1
|
||
|
|
||
|
GOALS = $(PBIN)\$(NAME).$(EXT)
|
||
|
|
||
|
LIBS =kernel32.lib user32.lib advapi32.lib ddraw.lib dsound.lib \
|
||
|
comdlg32.lib gdi32.lib winmm.lib crtdll.lib \
|
||
|
dinput.lib
|
||
|
|
||
|
OBJS = ffdonuts.obj ddutil.obj dsutil.obj input.obj
|
||
|
|
||
|
!if "$(DEBUG)" == "debug"
|
||
|
COPT =-YX -DDEBUG -Zi -Fd$(NAME).PDB
|
||
|
AOPT =-DDEBUG
|
||
|
LOPT =-debug:full -debugtype:cv -pdb:$(NAME).pdb
|
||
|
ROPT =-DDEBUG
|
||
|
!else
|
||
|
COPT =-YX
|
||
|
AOPT =
|
||
|
LOPT =-debug:none
|
||
|
ROPT =
|
||
|
!endif
|
||
|
RES = $(NAME).res
|
||
|
|
||
|
!if ("$(DEBUG)" == "ntretail") || ("$(DEBUG)" == "ntdebug")
|
||
|
CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@
|
||
|
RCFLAGS =$(ROPT)
|
||
|
!else
|
||
|
CFLAGS =$(COPT) -Oxa -D_X86_ $(CDEBUG) -Fo$@ -I..\..\misc -DUSE_DSOUND
|
||
|
RCFLAGS =$(ROPT) -DUSE_DSOUND
|
||
|
!endif
|
||
|
AFLAGS =$(AOPT) -Zp4 -DSTD_CALL -DBLD_COFF -coff
|
||
|
LFLAGS =$(LOPT)
|
||
|
|
||
|
!include ..\..\..\..\proj.mk
|
||
|
|
||
|
$(NAME).$(EXT): \
|
||
|
$(OBJS) ..\default.mk $(RES)
|
||
|
@$(LINK) $(LFLAGS) @<<
|
||
|
-out:$(NAME).$(EXT)
|
||
|
-map:$(NAME).map
|
||
|
-machine:i386
|
||
|
-subsystem:windows,4.0
|
||
|
$(LIBS)
|
||
|
$(RES)
|
||
|
$(OBJS)
|
||
|
<<
|