Added upstream from http://ftp.icm.edu.pl/pub/loglan/
[loglan.git] / sources / int / makefile
1 SHELL=/bin/sh
2 #.SUFFIXES: .o .c
3
4 #############################################################################\r
5 # switches :\r
6 # OBJECTADDR - switch on special process addressing - object simulates\r
7 #              process pointer\r
8 # CDBG - turn on debugging of compactifier, compactifier appends to file\r
9 #        'trace' state of memory before & after the compactification,\r
10 #        also a history of compactification & process number is dumped\r
11 # RPCDBG - debugging of alien call, all actions : alien call, acknowledges,\r
12 #          passivations and returns are written to stderr\r
13 # NO_GRAPH -    nonstand.c defines only INKEY grom IIUWGRAPH\r
14 # DLINK    -    DLINK network version\r
15 # TCPIP    -    TCPIP network version - needs also OBJECTADDR\r
16 #\r
17 # switches depending on environment :\r
18 # TURBOC - if using BORLAND TURBO-C compiler\r
19 # MSDOS/OS2/UNIX - choose operating system\r
20 # USE_CLOCK - scheduler should use clock() function to measure time\r
21 # USE_ALARM - scheduler should use alarm() function to measure time\r
22 # WORD_16BIT/DWORD_16BIT/WORD_32BIT - choose memory model :\r
23 #        small 16-bit / large 16-bit / small 32-bit\r
24 #\r
25 # for DLINK use cinta.o ( cinta.asm )\r
26 # for TCPIP use tcpip.o sock.o\r
27 # for no network simply leave empty\r
28 # NETFILE=tcpip.o sock.o\r
29 \r
30 #NETFILE=tcpip.o sock.o\r
31 NETFILE=
32
33 #CC=gcc -m486 -DDJE -DUSE_CLOCK -DWORD_32BIT -Dpascal=   \r
34 # MSDOS 32bit GNU CC\r
35
36 #CC=cl -AL -Olsg -DMSDOS -DDWORD_16BIT                  # MSDOS 16bit LARGE\r
37 #CC=cl -AL -Olsg -DMSDOS -DWORD_16BIT                   # MSDOS 16bit SMALL\r
38
39 UNIXPARS=-DUNIX -DWORD_32BIT -DUSE_ALARM -Dpascal=
40 UNIXPARSNG=$(UNIXPARS) 
41
42 #CC=cc $(UNIXPARSNG) -DNO_PROTOTYPES            # SUN,HP\r
43 #CC=rcc $(UNIXPARSNG) -O                        # SCO - AT&T C compiler\r
44 #CC=cc -W1 $(UNIXPARSNG)                        # SCO\r
45 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR           # SCO\r
46 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR -DTCPIP   # SCO TCPIP\r
47 CC=gcc $(UNIXPARSNG) -DOBJECTADDR -DXSIGHT      # GNU C+
48 #CC=cc -W1 $(UNIXPARS) -DSYSV -DXSIGHT          # SCO with X11 graphics\r
49 #CC=gcc -g $(UNIXPARS) -DSYSV -DXSIGHT          # SCO GCC with X11 graphics\r
50
51 CCc=$(CC)                                       # common version\r
52 #CCc=$(CC) -Fo$*.o                              # MSDOS MSC version\r
53
54 target : int
55
56 #############################################################################\r
57
58
59
60 OBJ= cint.o compact.o control.o util.o handler.o intdt.o        \
61      memory.o object.o runsys.o standard.o                      \
62      execute.o fileio.o nonstand.o process.o procaddr.o queue.o \
63      rpcall.o typchk.o  $(NETFILE)
64
65 .c.o :
66         $(CCc) -c $*.c
67 .s.o:
68         as -o $*.o $*.s
69
70 hgcint.exe: $(OBJ) inkeydos.o graf\lib\hgcmsf4.lib
71         link /e @link.lnk inkeydos.o, hgcint.exe, nul, graf\lib\hgcmsf4, ;
72
73 egaint.exe: $(OBJ) inkeydos.o graf\lib\egamsf4.lib\r
74         link /e @link.lnk inkeydos.o, egaint.exe, nul, graf\lib\egamsf4, ;\r
75 \r
76 cgaint.exe: $(OBJ) inkeydos.o graf\lib\mgcmsf4.lib\r
77         link /e @link.lnk inkeydos.o, cgaint.exe, nul, graf\lib\mgcmsf4, ;\r
78 \r
79 cga64int.exe: $(OBJ) inkeydos.o graf\lib\mgc64mf4.lib\r
80         link /e @link.lnk inkeydos.o, cga64int.exe, nul, graf\lib\mgc64mf4, ;\r
81 \r
82 int386.exe: $(OBJ)\r
83         $(CC) @link.lnk -lm -lpc -lgrx -o svgaint\r
84         strip svgaint\r
85         coff2exe svgaint\r
86         rm svgaint\r
87 #       move svgaint.exe ..\examp\svgaint.exe\r
88
89 int: $(OBJ) inkeyux.o
90         $(CC) $(OBJ) inkeyux.o -lm -lX11 -lmalloc -lsocket -o int
91         strip int
92 #       mv int $(HOME)/bin
93
94 nonstand.o : nonstand.c  x11graf1.c x11graf2.c 
95
96 herc : herc.c
97         $(CC) herc.c -lX11 -lmalloc -lsocket -o herc
98         strip herc
99
100 clean :
101         rm *.o