Added upstream from http://ftp.icm.edu.pl/pub/loglan/
[loglan.git] / sources / gen / makefile
1 #/*     Loglan82 Compiler&Interpreter\r
2 #     Copyright (C) 1993 Institute of Informatics, University of Warsaw\r
3 #     Copyright (C)  1993, 1994 LITA, Pau\r
4 #     \r
5 #     This program is free software; you can redistribute it and/or modify\r
6 #     it under the terms of the GNU General Public License as published by\r
7 #     the Free Software Foundation; either version 2 of the License, or\r
8 #     (at your option) any later version.\r
9 #     \r
10 #     This program is distributed in the hope that it will be useful,\r
11 #     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12 #     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13 #     GNU General Public License for more details.\r
14 #     \r
15 #             You should have received a copy of the GNU General Public License\r
16 #             along with this program; if not, write to the Free Software\r
17 #             Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\r
18 #\r
19 # contacts:  Andrzej.Salwicki@univ-pau.fr\r
20 #\r
21 # or             Andrzej Salwicki\r
22 #                LITA   Departement d'Informatique\r
23 #                Universite de Pau\r
24 #                Avenue de l'Universite\r
25 #                64000 Pau   FRANCE\r
26 #                tel.  ++33 59923154    fax. ++33 59841696\r
27 #\r
28 #=======================================================================\r
29 #*/\r
30 #\r
31 # switches SMALL/LARGE/HUGE switch between :\r
32 # 16-bit small, 16-bit large and 32-bit memory models\r
33
34 SHELL=/bin/sh
35 OBJ=gen.o mainvar.o genio.o lists.o genprot.o oxen.o back.o logen.o deb.o lcode.o
36
37 #change this according to your system\r
38
39 #CC=cl -Oelsgc -DSMALL -DTALK=0 -AC -Fo$*.o     # MSC small\r
40 #CC=cl -Oelsgc -DLARGE -DTALK=0 -AC -Fo$*.o     # MSC large\r
41 #CC=gcc -O -m486 -DHUGE -DTALK=20                       # GCC\r
42 CC=gcc -DHUGE -DNO_PROTOTYPES -DTALK=0          # SUN\r
43 #CC=cc -Oactl -CSON -W2 -DHUGE -DTALK=0         # SCO\r
44
45 target : gen
46
47 # UNIX 32-bit version\r
48 gen : $(OBJ)
49         $(CC) $(OBJ) -o gen
50         strip gen
51 #       cp gen $(HOME)/bin
52
53 # GCC version HUGE 32-bit memory\r
54 gen32.exe : $(OBJ)\r
55         $(CC) $(OBJ) -o gen.out\r
56         aout2exe gen.out\r
57         rm gen.out\r
58 \r
59 # MSC version LARGE 16-bit memory\r
60 gen.exe : $(OBJ)\r
61         link /e $(OBJ)\r
62 \r
63 # MSC version SMALL 16-bit memory\r
64 hgen.exe : $(OBJ)\r
65         link /e $(OBJ)\r
66
67 .c.o :
68         $(CC) -c $*.c
69
70 clean :
71         rm *.o gen
72
73