revert most files from origtgz deleted in MirBSD base to origtgz
[alioth/cvs.git] / os2 / test-makefile
1 # I use this for single compilation while porting; once the port is
2 # done it can be removed.
3
4 THIS_BASENAME = ../src/add
5
6 CC = icc
7
8 LIB = s:\ibmcpp\lib;s:\toolkt21\os2lib;
9 CINC = -Is:/ibmcpp/include -Is:/toolkt21/c/os2h
10 CFLAGS = -C+
11 CFLAGS += -W3 -Wpro+rea+tru+use+ -Ti+ -Ss+ -Gd+ -Gm+ -G4 -Q+ -Sm ${CINC}
12 CFLAGS += -DIBM_CPP -DHAVE_CONFIG_H
13
14 # translation of most important CFLAGS -- others are trivial
15 # ICC sez  -C+  -W3     -Ti+ ${CINC}
16 # GCC sez  -c   -Wall   -g   ${CINC}
17
18 # "-I../os2" below ought to be equivalent to "-I."
19 CFLAGS += -I../os2 -I../lib -I../src
20
21 # Preprocesses to stdout.
22 # CFLAGS += -Pd+
23   
24 # TCP/IP stuff
25 TCPIPLIB = s:\ibmtcpip\lib\tcp32dll.lib s:\ibmtcpip\lib\so32dll.lib porttcp.obj
26
27 # We probably don't need these.
28 # RPCLIB   = s:\ibmtcpip\lib\rpc32dll.lib
29 # FTPLIB   = s:\ibmtcpip\lib\ftpapi.lib
30
31 CFLAGS   += -DTCPIP_IBM -Is:\ibmtcpip\include
32
33 all: ${THIS_BASENAME}.obj
34 # all: ${THIS_BASENAME}.exe
35
36 ${THIS_BASENAME}.obj: ${THIS_BASENAME}.c
37         ${CC} ${CFLAGS} /Fo${THIS_BASENAME}.obj ${THIS_BASENAME}.c
38
39 ${THIS_BASENAME}.exe: ${THIS_BASENAME}.c
40         ${CC} ${CFLAGS} /Fe${THIS_BASENAME}.exe ${THIS_BASENAME}.c