#
# This is a "makegen" generated Makefile based on Makefile.tmpl
#
# Makegen has been developed as part of Minerva by David J. Hughes
#
# ********************   DO NOT EDIT THIS BY HAND   ********************
#

SHELL=/bin/sh

#
# Project top directory
#

TOP=..


# Generated automatically from site.mm.in by configure.
#
# Site specific configuration
#


CC= gcc
INST_DIR= /msql


#
# Things below here shouldn't need to be changed
#
LINK= $(CC)
CPP= gcc -E
RANLIB= ranlib

YACC= bison -y

SIGLIST= 
DIRENT= -DHAVE_DIRENT_H -DHAVE_DIRENT
MMAP= -DHAVE_MMAP
U_INT= -DHAVE_U_INT
SSIZE_T= -DHAVE_SSIZE_T
BITTYPES= -DHAVE_BIT_TYPES
SYS_ERR= 
TARGET= AmigaOS-39.106-m68k
WORKING_RLIMIT= 

# Extra libraries if required
EXTRA_LIB= 

# Any other CFlags required
EXTRA_CFLAGS= -DHAVE_CONFIG_H $(SSIZE_T) $(U_INT) $(BITTYPES)

# Directory for pid file
PID_DIR= 

CFLAGS= -O -I$(TOP)/ $(EXTRA_CFLAGS)
LDLIBS= -L$(TOP)/lib $(EXTRA_LIB)


CC_FLAGS= $(CFLAGS)
LD_LIBS= $(LDLIBS)

#
# Default Makefile Rules
#

install :: all

clean ::
	rm -f Makefile.full

#
# Makefile Rules
#


#
# This makegen template is grafted from the original Makefile (also
# included in this directory).  Look there for further porting hints
#


# Things you might want to put in ENV and LENV:
# -Dvoid=int		compilers that don't do void
# -DCHARBITS=0377	compilers that don't do unsigned char
# -DSTATIC=extern	compilers that don't like "static foo();" as forward dec
# -DSTRCSPN		library does not have strcspn()
# -Dstrchr=index	library does not have strchr()

CC_OPT= -O
ENV=
LENV=-Dvoid=int -DCHARBITS=0377


CC_FLAGS= $(CFLAGS) $(ENV) -I.
LINT_FLAGS= $(LINTFLAGS) $(ENV) -I.

regexp.o : regexp.c Makefile.full
	$(CC) $(CC_FLAGS) -c regexp.c

clean ::
	rm -f regexp.o

regsub.o : regsub.c Makefile.full
	$(CC) $(CC_FLAGS) -c regsub.c

clean ::
	rm -f regsub.o

all : libregexp.a

libregexp.a :  regexp.o regsub.o Makefile.full
	ar rc libregexp.a  regexp.o regsub.o
	ranlib libregexp.a

clean :: 
	rm -f libregexp.a


install ::
	if test -f $(INST_DIR)/lib/libregexp.a;\
	then\
		rm -f $(INST_DIR)/lib/libregexp.a.old;\
		mv $(INST_DIR)/lib/libregexp.a $(INST_DIR)/lib/libregexp.a.old;\
	fi;\
	cp libregexp.a $(INST_DIR)/lib/libregexp.a
	ranlib $(INST_DIR)/lib/libregexp.a
	chmod 744 $(INST_DIR)/lib/libregexp.a

install ::
	if test -f $(INST_DIR)/include/regexp.h;\
	then\
		rm -f $(INST_DIR)/include/regexp.h.old;\
		mv $(INST_DIR)/include/regexp.h $(INST_DIR)/include/regexp.h.old;\
	fi;\
	cp regexp.h $(INST_DIR)/include/regexp.h
	chmod 744 $(INST_DIR)/include/regexp.h



all : ../lib/libregexp.a

../lib/libregexp.a: libregexp.a
	rm -f ../lib/libregexp.a
	ln -s ../regexp/libregexp.a ../lib/libregexp.a
	$(RANLIB) ../lib/libregexp.a


