2013-12-02 09:26:09 +00:00
|
|
|
# This is an NMAKE-compatible makefile.
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
DEFINES = \
|
|
|
|
/D_CRT_SECURE_NO_DEPRECATE \
|
|
|
|
/D_CRT_SECURE_NO_WARNINGS \
|
|
|
|
/D_DEBUG \
|
|
|
|
/D_WIN32_WINNT=0x500 \
|
|
|
|
/D_WIN32_IE=_WIN32_WINNT \
|
|
|
|
/DISOLATION_AWARE_ENABLED \
|
|
|
|
/DWIN32 \
|
|
|
|
/DWIN32_LEAN_AND_MEAN \
|
|
|
|
/DLIBRARY
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
CFLAGS = /nologo /W3 /MT /I..\src /Zi /O2
|
|
|
|
CXXFLAGS = $(CFLAGS) /EHs
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
OBJDIR = obj
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
SSOBJS = $(OBJDIR)\constrainteq.obj \
|
|
|
|
$(OBJDIR)\entity.obj \
|
|
|
|
$(OBJDIR)\expr.obj \
|
|
|
|
$(OBJDIR)\system.obj \
|
|
|
|
$(OBJDIR)\util.obj
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
W32OBJS = $(OBJDIR)\w32util.obj
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
LIBOBJS = $(OBJDIR)\lib.obj
|
2009-04-20 07:30:09 +00:00
|
|
|
|
|
|
|
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib
|
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
all: $(OBJDIR)\CDemo.exe
|
|
|
|
@copy /y $(OBJDIR)\slvs.dll .
|
|
|
|
@echo slvs.dll
|
|
|
|
@copy /y $(OBJDIR)\CDemo.exe .
|
|
|
|
@echo CDemo.exe
|
2009-04-20 07:30:09 +00:00
|
|
|
|
|
|
|
clean:
|
2013-12-02 09:26:09 +00:00
|
|
|
-rmdir /s /q $(OBJDIR)
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
$(OBJDIR)\slvs.dll: $(SSOBJS) $(LIBOBJS) $(W32OBJS)
|
|
|
|
$(CXX) $(CXXFLAGS) /LD /Fe$(OBJDIR)\slvs.dll $(SSOBJS) $(LIBOBJS) $(W32OBJS) $(LIBS)
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
$(OBJDIR)\CDemo.exe: CDemo.c $(OBJDIR)\slvs.dll
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) /Fo$(OBJDIR)\ /Fe$(OBJDIR)\CDemo.exe CDemo.c $(OBJDIR)\slvs.lib $(LIBS)
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
.cpp{$(OBJDIR)}.obj::
|
|
|
|
@if not exist $(OBJDIR) mkdir $(OBJDIR)
|
|
|
|
$(CXX) $(CXXFLAGS) $(DEFINES) /c /Fo$(OBJDIR)\ $<
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
{..\src}.cpp{$(OBJDIR)}.obj::
|
|
|
|
@if not exist $(OBJDIR) mkdir $(OBJDIR)
|
|
|
|
$(CXX) $(CXXFLAGS) $(DEFINES) /c /Fo$(OBJDIR)\ $<
|
2009-04-20 07:30:09 +00:00
|
|
|
|
2013-12-02 09:26:09 +00:00
|
|
|
{..\src\win32}.cpp{$(OBJDIR)}.obj::
|
|
|
|
@if not exist $(OBJDIR) mkdir $(OBJDIR)
|
|
|
|
$(CXX) $(CXXFLAGS) $(DEFINES) /c /Fo$(OBJDIR)\ $<
|