1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
|
##############################################################################
# #
# FOX: A Free C++ Class Library for X #
# #
##############################################################################
# Contributed by: Andre Fornacon <afo@zlug.org> #
##############################################################################
# $Id: Makefile.dmc,v 1.16 2006/03/10 04:31:45 fox Exp $ #
##############################################################################
# This library is free software; you can redistribute it and/or #
# modify it under the terms of the GNU Library General Public #
# License as published by the Free Software Foundation; either #
# version 2 of the License, or (at your option) any later version. #
# #
# This library is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU #
# Library General Public License for more details. #
# #
# You should have received a copy of the GNU Library General Public #
# License along with this library; if not, write to the Free #
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. #
##############################################################################
# Digital Mars C++ Compiler 8.x or later
CXX = dmc
CXXFLAGS = -mn -5 -a8 -Ae -Ar
RM = del
TOPDIR = ..
DEFINES = -DFOX_BIGENDIAN=0 -DNDEBUG -D_WINDOWS -DWIN32 -DHAVE_VSSCANF -DHAVE_OPENGL #-DHAVE_PNG_H -DHAVE_JPEG_H -DHAVE_ZLIB_H -DHAVE_TIFF_H -DHAVE_BZ2LIB_H -DXMD_H
LD = link
LDFLAGS = /NOI /DELEXECUTABLE /PACKFUNCTIONS /EXETYPE:NT /SU:WINDOWS
LIBS = gc.lib+snn.lib+kernel32.lib+user32.lib+comctl32.lib+comdlg32.lib+advapi32.lib+shell32.lib+gdi32.lib+wsock32.lib+winspool.lib
GLLIBS = opengl32.lib+glu32.lib
INCDIRS = -I$(TOPDIR)\include
FOXLIB = $(TOPDIR)\src\FOX-1.6.lib
PROGRAMS = \
ControlPanel.exe \
rex.exe \
minheritance.exe \
expression.exe \
memmap.exe \
mditest.exe \
table.exe \
groupbox.exe \
foursplit.exe \
datatarget.exe \
scribble.exe \
splitter.exe \
shutter.exe \
image.exe \
header.exe \
hello.exe \
hello2.exe \
switcher.exe \
iconlist.exe \
tabbook.exe \
dialog.exe \
dirlist.exe \
button.exe \
dctest.exe \
wizard.exe \
imageviewer.exe
# on the following 2 programs compilation abort in the windows header files
# glviewer.exe \
# gltest.exe \
#
.cpp.obj:
$(CXX) -c $(INCDIRS) $(CXXFLAGS) $(DEFINES) $*.cpp
all: $(PROGRAMS)
ControlPanel.exe: $(FOXLIB) ControlPanel.obj
$(LD) $(LDFLAGS) ControlPanel.obj,,,$(FOXLIB) $(LIBS)
rex.exe: $(FOXLIB) rex.obj
$(LD) $(LDFLAGS) rex.obj,,,$(FOXLIB) $(LIBS)
minheritance.exe: $(FOXLIB) minheritance.obj
$(LD) $(LDFLAGS) minheritance.obj,,,$(FOXLIB) $(LIBS)
expression.exe: $(FOXLIB) expression.obj
$(LD) $(LDFLAGS) expression.obj,,,$(FOXLIB) $(LIBS)
memmap.exe: $(FOXLIB) memmap.obj
$(LD) $(LDFLAGS) memmap.obj,,,$(FOXLIB) $(LIBS)
wizard.exe: $(FOXLIB) wizard.obj
$(LD) $(LDFLAGS) wizard.obj,,,$(FOXLIB) $(LIBS)
foursplit.exe: $(FOXLIB) foursplit.obj
$(LD) $(LDFLAGS) foursplit.obj,,,$(FOXLIB) $(LIBS)
tabbook.exe: $(FOXLIB) tabbook.obj
$(LD) $(LDFLAGS) tabbook.obj,,,$(FOXLIB) $(LIBS)
table.exe: $(FOXLIB) table.obj
$(LD) $(LDFLAGS) table.obj,,,$(FOXLIB) $(LIBS)
switcher.exe: $(FOXLIB) switcher.obj
$(LD) $(LDFLAGS) switcher.obj,,,$(FOXLIB) $(LIBS)
button.exe: $(FOXLIB) button.obj
$(LD) $(LDFLAGS) button.obj,,,$(FOXLIB) $(LIBS)
mditest.exe: $(FOXLIB) mditest.obj
$(LD) $(LDFLAGS) mditest.obj,,,$(FOXLIB) $(LIBS)
datatarget.exe: $(FOXLIB) datatarget.obj
$(LD) $(LDFLAGS) datatarget.obj,,,$(FOXLIB) $(LIBS)
imageviewer.exe: $(FOXLIB) imageviewer.obj
$(LD) $(LDFLAGS) imageviewer.obj,,,$(FOXLIB) $(LIBS) #libpng.lib zlib.lib libjpeg.lib libtiff.lib
hello.exe: $(FOXLIB) hello.obj
$(LD) $(LDFLAGS) hello.obj,,,$(FOXLIB) $(LIBS)
hello2.exe: $(FOXLIB) hello2.obj
$(LD) $(LDFLAGS) hello2.obj,,,$(FOXLIB) $(LIBS)
dirlist.exe: $(FOXLIB) dirlist.obj
$(LD) $(LDFLAGS) dirlist.obj,,,$(FOXLIB) $(LIBS)
groupbox.exe: $(FOXLIB) groupbox.obj
$(LD) $(LDFLAGS) groupbox.obj,,,$(FOXLIB) $(LIBS)
scribble.exe: $(FOXLIB) scribble.obj
$(LD) $(LDFLAGS) scribble.obj,,,$(FOXLIB) $(LIBS)
splitter.exe: $(FOXLIB) splitter.obj
$(LD) $(LDFLAGS) splitter.obj,,,$(FOXLIB) $(LIBS)
iconlist.exe: $(FOXLIB) iconlist.obj
$(LD) $(LDFLAGS) iconlist.obj,,,$(FOXLIB) $(LIBS)
header.exe: $(FOXLIB) header.obj
$(LD) $(LDFLAGS) header.obj,,,$(FOXLIB) $(LIBS)
shutter.exe: $(FOXLIB) shutter.obj
$(LD) $(LDFLAGS) shutter.obj,,,$(FOXLIB) $(LIBS)
image.exe: $(FOXLIB) image.obj
$(LD) $(LDFLAGS) image.obj,,,$(FOXLIB) $(LIBS)
gltest.exe: $(FOXLIB) gltest.obj
$(LD) $(LDFLAGS) gltest.obj,,,$(FOXLIB) $(GLLIBS) $(LIBS)
glviewer.exe: $(FOXLIB) glviewer.obj
$(LD) $(LDFLAGS) glviewer.obj,,,$(FOXLIB) $(GLLIBS) $(LIBS)
dialog.exe: $(FOXLIB) dialog.obj
$(LD) $(LDFLAGS) dialog.obj,,,$(FOXLIB) $(LIBS)
dctest.exe: $(FOXLIB) dctest.obj
$(LD) $(LDFLAGS) dctest.obj,,,$(FOXLIB) $(LIBS)
clean:
del *.obj
del *.exe
del *.tds
|