Added upstream version.
[vlp.git] / int / Makefile
1 SHELL=/bin/bash
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
26         
27 UNIXPARS=-DUNIX -DWORD_32BIT -DUSE_ALARM -Dpascal=
28 UNIXPARSNG=$(UNIXPARS)
29
30 #CC=cc $(UNIXPARSNG) -DNO_PROTOTYPES            # SUN,HP
31 #CC=rcc $(UNIXPARSNG) -O                        # SCO - AT&T C compiler
32 #CC=cc -W1 $(UNIXPARSNG)                        # SCO
33 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR           # SCO
34 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR -DTCPIP   # SCO TCPIP
35 CC=gcc $(UNIXPARSNG) -DOBJECTADDR -DSYSV     # GNU C++ TCPIP
36 #CC=cc -W1 $(UNIXPARS) -DSYSV -DXSIGHT          # SCO with X11 graphics
37 #CC=gcc -g $(UNIXPARS) -DSYSV -DXSIGHT          # SCO GCC with X11 graphics
38
39 CCc=$(CC)                                       # common version
40 #CCc=$(CC) -Fo$*.o                              # MSDOS MSC version
41
42 target : int
43
44 #############################################################################
45 #ADDOPT = -lsocket # sun
46 ADDOPT =   # Linux
47
48
49 OBJ= cint.o compact.o control.o util.o handler.o intdt.o        \
50      memory.o object.o runsys.o standard.o                      \
51      execute.o fileio.o nonstand.o process.o procaddr.o queue.o \
52      rpcall.o typchk.o  
53
54 .c.o :
55         $(CCc) -c  $*.c
56 .s.o:
57         as -o $*.o $*.s
58
59
60 int: $(OBJ) 
61 #       $(CC) $(OBJ) inkeyux.o -lm -lX11 -lmalloc -lsocket -ggdb -o int
62         $(CC) $(OBJ) -lm $(ADDOPT) -o logint
63 #       strip logint
64 #       mv int $(HOME)/LOGLAN.PAU/bin
65
66 nonstand.o : nonstand.c
67
68 clean :
69         rm -f *.o *.bak logint