######################################################################
# !WARNING! Machine-generated Makefile. Modifications may be lost.
#	
# Built from $Id: Makemake,v 1.10.3.48 1994/02/28 05:29:45 ramos Exp $
#
# Hand-modified: Mon Mar 14 10:06:36 CST 1994  ! DO NOT REMAKE !
#
######################################################################
#
#  make           -- builds the app
#
#  make tlib 	  -- builds app using test version of shared library
#
#  make clean     -- gets rid of all object files (save space)
#
#  make clobber   -- does make clean, and then gets rid of executable
#
#  make backup    -- creates a  .tar.gz file that backs up your project
#
#  make checkin   -- Checkes in all RCS managed files from the current
#                    dir.
#
#  make make	  -- Makes a new Makefile from scratch.
#
######################################################################

#
# Low-level code generation switches...
#

CC        = gcc
MAKE      = /usr/local/gnu/bin/make
SHELL	  = /bin/sh

#DEBUG	  = -g
OPTIMIZE  = -s -DNDEBUG -O2

#STATIC   = -static

#
# Locate librabries, and include files.
#
LDLIBS   = 
LDFLAGS  = 
INCLUDE  = 

#
# Miscellaneous...
#

CFLAGS   = $(STATIC) $(INCLUDE) $(DEBUG) $(OPTIMIZE) \
	   -Wall

#
# Project ...
#

PROG_OBJS=assemble.o\
	debug.o\
	error.o input.o\
	getopt.o\
	globalv.o\
	main.o\
	misc.o\
	mklib.o\
	mnemotab.o\
	mtt.o\
	output.o\
	rplcomp.o\
	strlib.o\
	symtab.o\
	gpl.o\
	techmem.o\
	table.o

# default targets

default:	rpp TAGS

#
# Object-code generation phase
#

COMPILE.c=$(CC) $(CFLAGS) -c

#
# Linking phase
#

rpp:    $(PROG_OBJS) Makefile $(LATECH_LATECH) 
	rm -f rpp
	$(CC) $(CFLAGS) $(LDFLAGS) -o rpp \
	$(PROG_OBJS) $(LDLIBS) 


######################################################################

techmem.o: techmem.c techmem.h Makefile
	   $(CC) $(CFLAGS) -DTECHMEM_GENERIC -c techmem.c
			       
clean:
	 rm -f *.o core *.bak TAGS tags

clobber: clean
	 rm -f rpp

backup:  clobber
	 rm -f ../rppbak.zip
	 ksh -c 'cd ..; zip -yr rppbak $$OLDPWD/*';

TAGS:    ../*/*.c ../*/*.h
	 etags *.c *.h ../*/*.c ../*/*.h &

make:
	 exec /user/public/suit/tools/Makemake -main main

#####################################################################
# Machine-generated depedency lists...
#####################################################################

assemble.o : assemble.c config.h techmem.h debug.h misc.h strlib.h mnemotab.h \
  symtab.h globalv.h output.h error.h 
debug.o : debug.c config.h debug.h 
error.o : error.c config.h debug.h error.h globalv.h 
getopt.o : getopt.c 
globalv.o : globalv.c config.h debug.h input.h 
gpl.o : gpl.c 
input.o : input.c config.h techmem.h debug.h input.h strlib.h misc.h 
main.o : main.c config.h techmem.h debug.h rplcomp.h assemble.h misc.h strlib.h \
  error.h symtab.h globalv.h getopt.h output.h mklib.h gpl.h input.h 
misc.o : misc.c config.h techmem.h debug.h strlib.h misc.h 
mklib.o : mklib.c config.h debug.h misc.h strlib.h mklib.h output.h symtab.h \
  error.h 
mkmtt.o : mkmtt.c config.h techmem.h debug.h mnemotab.h strlib.h misc.h 
mktable.o : mktable.c config.h debug.h symtab.c techmem.h symtab.h error.h globalv.h \
  misc.h strlib.h 
mnemotab.o : mnemotab.c config.h debug.h mnemotab.h strlib.h misc.h 
mtt.o : mtt.c config.h debug.h mnemotab.h 
output.o : output.c config.h techmem.h debug.h symtab.h output.h error.h strlib.h \
  misc.h globalv.h 
rplcomp.o : rplcomp.c config.h techmem.h debug.h mklib.h output.h error.h symtab.h \
  strlib.h misc.h rplcomp.h globalv.h input.h 
strlib.o : strlib.c config.h techmem.h debug.h strlib.h misc.h 
symtab.o : symtab.c config.h techmem.h debug.h symtab.h error.h globalv.h misc.h \
  strlib.h 
table.o : table.c symtab.h 
techmem.o : techmem.c 
xref.o : xref.c config.h techmem.h debug.h misc.h strlib.h 
