45 lines
698 B
Makefile
45 lines
698 B
Makefile
|
NAME = killsvr
|
||
|
EXT = exe
|
||
|
|
||
|
IS_32 = 1
|
||
|
|
||
|
GOALS = $(PBIN)\$(NAME).$(EXT)
|
||
|
|
||
|
LIBS = crtdll.lib kernel32.lib
|
||
|
|
||
|
OBJS = killsvr.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
|
||
|
DEF = $(NAME).def
|
||
|
RES = $(NAME).res
|
||
|
|
||
|
CFLAGS =$(COPT) -Ox -D_X86_ $(CDEBUG) -Fo$@ $(NOCONSOLE)
|
||
|
AFLAGS =$(AOPT) -Zp4 -DSTD_CALL -DBLD_COFF -coff
|
||
|
LFLAGS =$(LOPT)
|
||
|
RCFLAGS =$(ROPT)
|
||
|
|
||
|
NOLOGO = 1
|
||
|
|
||
|
!include ..\..\..\proj.mk
|
||
|
|
||
|
$(NAME).$(EXT): \
|
||
|
$(OBJS) ..\$(NAME).def
|
||
|
@$(LINK) $(LFLAGS) @<<
|
||
|
-out:$(NAME).$(EXT)
|
||
|
-map:$(NAME).map
|
||
|
-machine:i386
|
||
|
-def:..\$(NAME).def
|
||
|
$(LIBS)
|
||
|
$(OBJS)
|
||
|
<<
|