home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
adaptor.zip
/
adapt.zip
/
adaptor
/
src
/
makefile.os2
< prev
next >
Wrap
Makefile
|
1994-01-03
|
2KB
|
84 lines
# Makefile to compile the sources of ADAPTOR translation system
#
# some comments:
#
# change compiler, flags appropriate to your machine
#
# add -DSYS_V to CFLAGS when compiling on System V
# add -Dalliant to CFLAGS when compiling on Alliant
#
# add -Bstatic to LFLAGS to get a static executable
#
XDIR = /vol/X11R4
XLIB = $(XDIR)/lib
XINCLUDE = $(XDIR)/include
#
#
CC = gcc
CFLAGS = -I./include -O2 -w -DOS2 -s
LFLAGS = -lXaw -lXmu -lXext -lXt -lX11 -lm
#
# modules for general transformation
#
OBJS = Source.o Scanner.o Parser.o Errors.o BuildTre.o \
Tree.o Definiti.o DepGraph.o CallGrap.o \
Semantic.o SemExp.o SemDecls.o \
ControlF.o labels.o \
Types.o Shapes.o Calling.o DataFlow.o\
ChangeDe.o MakeDefs.o ShowDefs.o SetDefs.o CallGraF.o \
Transfor.o Reductio.o Globals.o \
Expressi.o MoveCont.o WAnalysi.o \
WDistrib.o NormalAr.o permutat.o \
WTempora.o TempVars.o TempScal.o \
AdaptIni.o AdaptF77.o NormalLo.o \
AdaptVar.o AdaptSca.o AdaptLoc.o \
WMovemen.o AdaptDoL.o \
AdaptSer.o AdaptFor.o AdaptF90.o \
Dependen.o pred.o \
WTransfo.o Unparse.o \
AdaptOn.o AdaptCM.o \
WBroadca.o WSArrays.o \
IndexSha.o Dalib.o \
protocol.o makef.o global.o
#
# reusable modules
#
ROBJS = DynArray.o General.o Idents.o Memory.o Sets.o StringMe.o SysCalls.o
#
# modules of X-window (widgets) interface
#
WOBJS = xfiles.o xglobal.o xmenu.o xoptions.o xcommands.o \
xunits.o xvars.o xshowfile.o xhelp.o xreadint.o
#
#
# all: fstrip fadapt
all: fstrip.exe fadapt.exe
#
# fadapt: adapt with X-Windows / Athena Widgets Interface
#
fadaptX.exe: $(OBJS) fadapt.o $(ROBJS) $(WOBJS)
$(CC) fadapt.o -o fadaptX.exe libfadap.a $(LFLAGS)
#
fstrip.exe: fstrip.c
$(CC) -O2 -s fstrip.c -o fstrip.exe
emxbind -s fstrip.exe
#
# adapt: without X
#
fadapt.exe: $(OBJS) fadapt1.o $(ROBJS)
$(CC) fadapt1.o $(OBJS) $(ROBJS) -o fadapt.exe
emxbind -s fadapt.exe
#
fadapt1.o: fadapt.c
$(CC) -c $(CFLAGS) -DBATCH fadapt.c
mv fadapt.o fadapt1.o
#
# compiling modules
#
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(CFLAGS) $<
#
clean:
rm -f *.o fadapt.exe fstrip.exe