2008-03-28 10:00:37 +00:00
|
|
|
DEFINES = /D_WIN32_WINNT=0x500 /DISOLATION_AWARE_ENABLED /D_WIN32_IE=0x500 /DWIN32_LEAN_AND_MEAN /DWIN32
|
2008-05-17 06:04:55 +00:00
|
|
|
CFLAGS = /W3 /nologo -I..\common\win32 /D_DEBUG /D_CRT_SECURE_NO_WARNINGS /Zi /I. /EHs
|
2008-03-25 10:02:13 +00:00
|
|
|
|
2008-04-24 06:22:16 +00:00
|
|
|
HEADERS = ..\common\win32\freeze.h ui.h solvespace.h dsc.h sketch.h expr.h polygon.h
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
OBJDIR = obj
|
|
|
|
|
|
|
|
FREEZE = $(OBJDIR)\freeze.obj
|
|
|
|
|
|
|
|
W32OBJS = $(OBJDIR)\w32main.obj \
|
|
|
|
|
|
|
|
SSOBJS = $(OBJDIR)\solvespace.obj \
|
2008-04-13 10:58:22 +00:00
|
|
|
$(OBJDIR)\textwin.obj \
|
2008-03-26 09:18:12 +00:00
|
|
|
$(OBJDIR)\graphicswin.obj \
|
2008-03-27 09:53:51 +00:00
|
|
|
$(OBJDIR)\util.obj \
|
2008-04-01 10:48:44 +00:00
|
|
|
$(OBJDIR)\entity.obj \
|
|
|
|
$(OBJDIR)\sketch.obj \
|
2008-04-11 11:13:47 +00:00
|
|
|
$(OBJDIR)\glhelper.obj \
|
2008-04-13 14:28:35 +00:00
|
|
|
$(OBJDIR)\expr.obj \
|
2008-04-14 10:28:32 +00:00
|
|
|
$(OBJDIR)\constraint.obj \
|
|
|
|
$(OBJDIR)\drawconstraint.obj \
|
2008-04-18 11:11:48 +00:00
|
|
|
$(OBJDIR)\file.obj \
|
2008-04-20 11:35:10 +00:00
|
|
|
$(OBJDIR)\system.obj \
|
2008-04-25 07:04:09 +00:00
|
|
|
$(OBJDIR)\polygon.obj \
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
|
2008-03-27 09:53:51 +00:00
|
|
|
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib opengl32.lib glu32.lib
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
all: $(OBJDIR)/solvespace.exe
|
|
|
|
@cp $(OBJDIR)/solvespace.exe .
|
2008-04-24 06:22:16 +00:00
|
|
|
solvespace t.slvs
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f obj/*
|
|
|
|
|
|
|
|
$(OBJDIR)/solvespace.exe: $(SSOBJS) $(W32OBJS) $(FREEZE)
|
|
|
|
@$(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/solvespace.exe $(SSOBJS) $(W32OBJS) $(FREEZE) $(LIBS)
|
|
|
|
@echo solvespace.exe
|
|
|
|
|
|
|
|
$(SSOBJS): $(@B).cpp $(HEADERS)
|
|
|
|
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp
|
|
|
|
|
|
|
|
$(W32OBJS): win32/$(@B).cpp $(HEADERS)
|
|
|
|
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj win32/$(@B).cpp
|
|
|
|
|
|
|
|
$(FREEZE): ..\common\win32\$(@B).cpp $(HEADERS)
|
|
|
|
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj ..\common\win32\$(@B).cpp
|