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