Update to the newest upstream version.
[vlp.git] / int / Makefile
1 ###   Includes for QT library
2 QINC=/usr/include/qt3
3
4 ###   QT library directory
5 QLIB=/usr/lib3/
6
7 ###   moc compiler directory
8 MOCDIR=/usr/bin
9
10 ###  Install directory
11 INSTALLDIR=/home/andrzej/vlp3binD
12
13 ###  QT Library linking phrase
14 QLINK=-lqt-mt
15 SHELL=/bin/bash
16 #.SUFFIXES: .o .c
17
18 #############################################################################
19 # switches :
20 # OBJECTADDR - switch on special process addressing - object simulates
21 #              process pointer
22 # CDBG - turn on debugging of compactifier, compactifier appends to file
23 #        'trace' state of memory before & after the compactification,
24 #        also a history of compactification & process number is dumped
25 # RPCDBG - debugging of alien call, all actions : alien call, acknowledges,
26 #          passivations and returns are written to stderr
27 # NO_GRAPH -    nonstand.c defines only INKEY grom IIUWGRAPH
28 # DLINK    -    DLINK network version
29 # TCPIP    -    TCPIP network version - needs also OBJECTADDR
30 #
31 # switches depending on environment :
32 # TURBOC - if using BORLAND TURBO-C compiler
33 # MSDOS/OS2/UNIX - choose operating system
34 # USE_CLOCK - scheduler should use clock() function to measure time
35 # USE_ALARM - scheduler should use alarm() function to measure time
36 # WORD_16BIT/DWORD_16BIT/WORD_32BIT - choose memory model :
37 #        small 16-bit / large 16-bit / small 32-bit
38 #
39
40         
41 UNIXPARS=-DUNIX -DWORD_32BIT -DUSE_CLOCK -Dpascal=
42 UNIXPARSNG=$(UNIXPARS)
43
44 #CC=cc $(UNIXPARSNG) -DNO_PROTOTYPES            # SUN,HP
45 #CC=rcc $(UNIXPARSNG) -O                        # SCO - AT&T C compiler
46 #CC=cc -W1 $(UNIXPARSNG)                        # SCO
47 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR           # SCO
48 #CC=cc -W1 $(UNIXPARSNG) -DOBJECTADDR -DTCPIP   # SCO TCPIP
49 CC=gcc $(UNIXPARSNG) -DOBJECTADDR -DSYSV -I$(QINC)    # GNU C++ TCPIP
50 #CC=cc -W1 $(UNIXPARS) -DSYSV -DXSIGHT          # SCO with X11 graphics
51 #CC=gcc -g $(UNIXPARS) -DSYSV -DXSIGHT          # SCO GCC with X11 graphics
52
53 CCc=$(CC)                                       # common version
54 #CCc=$(CC) -Fo$*.o                              # MSDOS MSC version
55
56 target : int
57
58 #############################################################################
59 #ADDOPT = -lsocket # sun
60 ADDOPT =  $(QLINK) # Linux
61
62
63 OBJ= cint.o compact.o control.o util.o handler.o intdt.o        \
64      memory.o object.o runsys.o standard.o                      \
65      execute.o fileio.o nonstand.o process.o procaddr.o queue.o \
66      rpcall.o typchk.o  
67
68 .c.o :
69         $(CCc) -c  $*.c
70 .s.o:
71         as -o $*.o $*.s
72
73
74 int: $(OBJ) 
75 #       $(CC) $(OBJ) inkeyux.o -lm -lX11 -lmalloc -lsocket -ggdb -o int
76         $(CC) $(OBJ) -lm $(ADDOPT) -o logint
77 #       strip logint
78 #       mv int $(HOME)/LOGLAN.PAU/bin
79
80 nonstand.o : nonstand.c
81
82 clean :
83         rm -f *.o *.bak logint