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-06-21 10:18:20 +00:00
|
|
|
# Use the multi-threaded static libc because libpng and zlib do; not sure if anything bad
|
|
|
|
# happens if those mix, but don't want to risk it.
|
2009-09-17 07:32:36 +00:00
|
|
|
CFLAGS = /W3 /nologo -MT -Iextlib -I..\common\win32 /D_DEBUG /D_CRT_SECURE_NO_WARNINGS /I. /Zi /EHs # /O2
|
2008-03-25 10:02:13 +00:00
|
|
|
|
2009-01-15 03:55:42 +00:00
|
|
|
HEADERS = ..\common\win32\freeze.h ui.h solvespace.h dsc.h sketch.h expr.h polygon.h srf\surface.h
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
OBJDIR = obj
|
|
|
|
|
|
|
|
FREEZE = $(OBJDIR)\freeze.obj
|
|
|
|
|
|
|
|
W32OBJS = $(OBJDIR)\w32main.obj \
|
2009-04-20 07:30:09 +00:00
|
|
|
$(OBJDIR)\w32util.obj \
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
SSOBJS = $(OBJDIR)\solvespace.obj \
|
2008-04-13 10:58:22 +00:00
|
|
|
$(OBJDIR)\textwin.obj \
|
2008-06-23 08:37:12 +00:00
|
|
|
$(OBJDIR)\textscreens.obj \
|
2009-09-29 13:14:47 +00:00
|
|
|
$(OBJDIR)\confscreen.obj \
|
2008-03-26 09:18:12 +00:00
|
|
|
$(OBJDIR)\graphicswin.obj \
|
2009-01-03 12:27:33 +00:00
|
|
|
$(OBJDIR)\modify.obj \
|
2008-03-27 09:53:51 +00:00
|
|
|
$(OBJDIR)\util.obj \
|
2009-07-20 01:47:59 +00:00
|
|
|
$(OBJDIR)\style.obj \
|
2008-04-01 10:48:44 +00:00
|
|
|
$(OBJDIR)\entity.obj \
|
2008-06-06 08:14:37 +00:00
|
|
|
$(OBJDIR)\drawentity.obj \
|
|
|
|
$(OBJDIR)\group.obj \
|
|
|
|
$(OBJDIR)\groupmesh.obj \
|
|
|
|
$(OBJDIR)\request.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 \
|
2009-01-03 12:31:19 +00:00
|
|
|
$(OBJDIR)\constrainteq.obj \
|
2009-09-29 13:14:47 +00:00
|
|
|
$(OBJDIR)\mouse.obj \
|
2008-06-06 08:14:37 +00:00
|
|
|
$(OBJDIR)\draw.obj \
|
2009-01-02 10:38:36 +00:00
|
|
|
$(OBJDIR)\toolbar.obj \
|
2008-04-14 10:28:32 +00:00
|
|
|
$(OBJDIR)\drawconstraint.obj \
|
2008-04-18 11:11:48 +00:00
|
|
|
$(OBJDIR)\file.obj \
|
2008-06-04 10:22:30 +00:00
|
|
|
$(OBJDIR)\undoredo.obj \
|
2008-04-20 11:35:10 +00:00
|
|
|
$(OBJDIR)\system.obj \
|
2008-04-25 07:04:09 +00:00
|
|
|
$(OBJDIR)\polygon.obj \
|
2008-05-22 10:28:28 +00:00
|
|
|
$(OBJDIR)\mesh.obj \
|
2008-06-23 08:37:12 +00:00
|
|
|
$(OBJDIR)\bsp.obj \
|
2008-06-30 09:09:17 +00:00
|
|
|
$(OBJDIR)\ttf.obj \
|
2008-07-08 07:45:47 +00:00
|
|
|
$(OBJDIR)\generate.obj \
|
|
|
|
$(OBJDIR)\export.obj \
|
2009-07-08 09:44:13 +00:00
|
|
|
$(OBJDIR)\exportvector.obj \
|
2009-06-08 06:50:16 +00:00
|
|
|
$(OBJDIR)\exportstep.obj \
|
2008-03-25 10:02:13 +00:00
|
|
|
|
2009-01-15 03:55:42 +00:00
|
|
|
SRFOBJS = $(OBJDIR)\ratpoly.obj \
|
2009-03-29 06:05:28 +00:00
|
|
|
$(OBJDIR)\curve.obj \
|
|
|
|
$(OBJDIR)\surface.obj \
|
2009-01-19 10:37:10 +00:00
|
|
|
$(OBJDIR)\triangulate.obj \
|
2009-01-23 03:30:30 +00:00
|
|
|
$(OBJDIR)\boolean.obj \
|
2009-01-27 07:59:58 +00:00
|
|
|
$(OBJDIR)\surfinter.obj \
|
2009-06-21 09:14:49 +00:00
|
|
|
$(OBJDIR)\raycast.obj \
|
2009-06-05 05:38:41 +00:00
|
|
|
$(OBJDIR)\merge.obj \
|
2009-01-15 03:55:42 +00:00
|
|
|
|
|
|
|
|
2008-07-18 09:50:52 +00:00
|
|
|
RES = $(OBJDIR)\resource.res
|
|
|
|
|
2008-03-25 10:02:13 +00:00
|
|
|
|
2008-02-09 13:52:01 +00:00
|
|
|
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib shell32.lib opengl32.lib glu32.lib \
|
2009-07-20 19:05:33 +00:00
|
|
|
extlib\libpng.lib extlib\zlib.lib extlib\si\siapp.lib
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
all: $(OBJDIR)/solvespace.exe
|
|
|
|
@cp $(OBJDIR)/solvespace.exe .
|
2009-09-17 07:32:36 +00:00
|
|
|
solvespace t8.slvs
|
2008-03-25 10:02:13 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f obj/*
|
|
|
|
|
2009-01-19 10:37:10 +00:00
|
|
|
$(OBJDIR)/solvespace.exe: $(SRFOBJS) $(SSOBJS) $(W32OBJS) $(FREEZE) $(RES)
|
2009-01-15 03:55:42 +00:00
|
|
|
@$(CC) $(DEFINES) $(CFLAGS) -Fe$(OBJDIR)/solvespace.exe $(SSOBJS) $(SRFOBJS) $(W32OBJS) $(FREEZE) $(RES) $(LIBS)
|
2008-06-06 11:35:28 +00:00
|
|
|
editbin /nologo /STACK:8388608 $(OBJDIR)/solvespace.exe
|
2008-03-25 10:02:13 +00:00
|
|
|
@echo solvespace.exe
|
|
|
|
|
|
|
|
$(SSOBJS): $(@B).cpp $(HEADERS)
|
|
|
|
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj $(@B).cpp
|
|
|
|
|
2009-01-15 03:55:42 +00:00
|
|
|
$(SRFOBJS): srf\$(@B).cpp $(HEADERS)
|
|
|
|
@$(CC) $(CFLAGS) $(DEFINES) -c -Fo$(OBJDIR)/$(@B).obj srf\$(@B).cpp
|
|
|
|
|
2008-03-25 10:02:13 +00:00
|
|
|
$(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
|
2008-07-18 09:50:52 +00:00
|
|
|
|
|
|
|
$(RES): win32/$(@B).rc icon.ico
|
|
|
|
rc win32/$(@B).rc
|
|
|
|
mv win32/$(@B).res $(OBJDIR)/$(@B).res
|
|
|
|
|
2009-01-02 10:38:36 +00:00
|
|
|
toolbar.cpp: $(OBJDIR)/icons.h
|
|
|
|
|
|
|
|
$(OBJDIR)/icons.h: icons/* png2c.pl
|
|
|
|
perl png2c.pl > $(OBJDIR)/icons.h
|
|
|
|
|