home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
a_arrays.zip
/
TEST.MAK
< prev
Wrap
Text File
|
1994-10-31
|
2KB
|
86 lines
### polymake program generator for test.exe (testing associative arrays)
# note: the compiler is set by the environment variable C
# which is either BORLAND, ZORTECH or MSC
# note: to create debugging info (make debug=1 -f ...)
%if %defined(debug)
DEBUG = $(debug)
%endif
# project
EXECUTABLE = test
SOURCES = test assoc
OBJS = $[f,,$(SOURCES),obj]
%if $(C) == BORLAND # Borland Compiler
# model
MODEL = s
STARTUP = c0s
INTOBJ =
LIB = maths emu cs
# tools
CC = bcc
ASM = masm
LINK = tlink
# debug versus normal
%if %defined(DEBUG) # debug
CFLAGS = -c -v -k -N -R -m$(MODEL) -DDEBUG=1
AFLAGS = /Zi /W2 /T /MX
LFLAGS = /n /v /m /s /c
%else # normal
CFLAGS = -c -O2 -m$(MODEL) -DNDEBUG=1
AFLAGS = /W2 /T /MX
LFLAGS = /n /P=65536 /x /c
%endif
%elseif $(C) == ZORTECH # Zortech compiler
# model
MODEL = si
STARTUP =
INTOBJ =
LIB = zls
# tools
CC = ztc
ASM = masm
LINK = blinkx
# debug versus normal
%if %defined(DEBUG) # debug
CFLAGS = -g -s -C -c -r -m$(MODEL) -DDEBUG=1
AFLAGS = /Zi /W2 /T /MX
LFLAGS = /CO /M /NOD /NOI
%else # normal
CFLAGS = -o -c -r -m$(MODEL) -DNDEBUG=1
AFLAGS = /W2 /T /MX
LFLAGS = /F /PAC /NOD /NOI
%endif
%else # No compiler specified
doa:
@echo *** No compiler specified ***
%abort 666
%endif
#rules
.asm.obj :
$(ASM) $(AFLAGS) $<,$@;
.c.obj :
$(CC) $(CFLAGS) $<
.cpp.obj :
$(CC) $(CFLAGS) $<
# ding an sich
$(EXECUTABLE).exe: $(OBJS)
$(LINK) <@<
$(STARTUP) $(SOURCES) $(INTOBJ)
$(EXECUTABLE).exe
$(EXECUTABLE).map
$(LIB)
;
< $(LFLAGS)
#dependencies
assoc.obj: assoc.cpp assoc.hpp
test.obj: test.cpp assoc.hpp