28 lines
809 B
Plaintext
28 lines
809 B
Plaintext
#=============================
|
|
# Makefile to build xash utils
|
|
# Author: Unkle Mike <xash.ru>
|
|
#
|
|
# Please associate .nmake files as NMAKE.EXE "/f" "%1" for build this file
|
|
#=============================
|
|
|
|
!include <win32.mak>
|
|
|
|
MAINTARGET = xwad
|
|
OBJS = $(MAINTARGET).obj
|
|
RES = $(MAINTARGET).rc
|
|
|
|
default: $(MAINTARGET).exe
|
|
|
|
$(MAINTARGET).exe: $(MAINTARGET).obj xwad.res
|
|
$(link) $(OBJS) xwad.res /out:"xwad.exe" /subsystem:windows /opt:nowin98 /nodefaultlib:"libc.lib"
|
|
@del $(MAINTARGET).obj $(MAINTARGET).lib $(MAINTARGET).exp $(MAINTARGET).res > nul
|
|
@copy $(MAINTARGET).exe D:\Xash3D\sdk_main\tools\$(MAINTARGET).exe
|
|
@del $(MAINTARGET).exe
|
|
@echo ‘ª®¯¨à®¢ ® ä ©«®¢: 1.
|
|
clean:
|
|
|
|
.cpp.obj:
|
|
$(CC) $(CFLAGS) /c $<
|
|
|
|
xwad.res : xwad.rc
|
|
$(RC) $(RCFLAGS) /r xwad.rc |