# # "MOSIS", an automatic mosis request maker, # Copyright (C) 1985, 1990 California Institute of Technology. # Original author: Massimo Sivilotti # Unix Port Maintainer: John Lazzaro # Maintainers's address: lazzaro@csvax.caltech.edu; # CB 425 CU Boulder/Boulder CO 91125. # # #This program is free software; you can redistribute it and/or modify #it under the terms of the GNU General Public License as published by #the Free Software Foundation (Version 1, 1989). # # #This program is distributed in the hope that it will be useful, #but WITHOUT ANY WARRANTY; without even the implied warranty of #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #GNU General Public License for more details. # #You should have received a copy of the GNU General Public License #along with this program; see the file COPYING. If not, write to #the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # # BINDIR = ${PREFIX}/bin ## ## (1) Choosing your compiler ## --------------------------- ## ## For Sun SPARC, HP series 300/400 and Apple, gcc is recommended, ## most 2.XX and 1.XX work well. ## ## For DEC MIPS-based Ultrix, a "stable" gcc 2.X.X is recommended ## ## For HP series 700/800 (extra-cost) ANSI cc is recommended (see below for ## options). HP's non-ANSI cc will not work, and gcc presently has some ## problems with . For version 8.05 (and earlier) of HP ANSI cc ## you will need a patch tape from HP to fix compiler bugs; alternatively, ## you can get around the problem by compile the file math.c ## with the gcc 2.XX compiler. ## ## For IBM RS/6000, xlc is recommended (see below for options) ## ## For Linux & FreeBSD, gcc 2.X.X is recommended (see below for options) ## ## For SGI machines, cc is recommended. ## CC ?= gcc ## ## (2) If X isn't in the include path (the case for many MachTen and Linux ## installations) change XINCLUDEDIR to reflect this: ## ## XINCLUDEDIR = /usr/X11R6/include ## ## or maybe ## ## XINCLUDEDIR = /usr/X11/include ## ## or some other directory, depending on your installation. Use the ## first one for OS X. XINCLUDEDIR = ${X11BASE}/include ## ## If X isn't in the library path (the case for many MachTen and Linux ## installations) change LIBX11 to reflect this: ## ## LIBX11 = -L/usr/X11/lib -lX11 ## ## or maybe ## ## LIBX11 = -lX11 -L/usr/X11R6/lib ## ## depending on your installation. Use the second one for OS X. ## LIBX11 = -lX11 -L${X11BASE}/lib ## ## (3) Adding appropriate flags ## ----------------------------- ## ## Add these flags to the CHIPMUNKFLAGS below: ## ## Linux/86 -DBSD -Dlinux -DF_OK=0 -m486 ## Solaris 2.X -Daux ## DEC Alpha (Linux or OSF) -DBSD -Dlinux -DF_OK=0 -D__GCC__ ## HP series 800 (gcc) ## HP series 800 (cc) -w -Aa -D_HPUX_SOURCE -DF_OK=0 ## FreeBSD -DBSD -Dfreebsd -Dlinux -DF_OK=0 -m486 ## SGI Irix 5.2/5,3 -ansi -Wf -XNd10000 ## (if -Wf -XNd10000 isn't supported by ## your compiler, delete them) ## Solaris 1.X (SunOS) ## IBM RS/6000 (xlc) -DBSD=0 -Drs6000 ## Apple OS X -DBSD -Dlinux -Dfreebsd ## Apple AU/X -Daux ## Apple MachTen -DBSD -DF_OK=0 ## AmigaOS (gcc) -ansi -DBSD -DF_OK=0 ## ## ## AmigaOS: if you are using X shared library with ADE, see notes below ## in log and loged rules, also ## to increase speed, try to add -O3 and, based on your CPU, one of these ## ## -m68020 : for 68020 ## -m68020 -m68881 : for 68020+6888x ## -m68030 : for 68030 ## -m68030 -m68881 : for 68030+6888x ## -m68040 : for 68040 and 68060 ## CHIPMUNKFLAGS = CFLAGS += -DBSD -DF_OK -I../psys/include -I$(XINCLUDEDIR) ## ## (4) Library additions ## --------------------- ## ## on some systems, -ldl must be added to the following line OTHERLIBS= -lm -lcompat ## ## ## LDFLAGS = ../psys/src/libp2c.a $(OTHERLIBS) $(LIBX11) mosis: mosis.o $(CC) -o mosis mosis.o $(LDFLAGS) install: mosis ${BSD_INSTALL_PROGRAM} mosis $(BINDIR) clean: rm -f *.o mosis