73 lines
1.6 KiB
Makefile
73 lines
1.6 KiB
Makefile
# Generated automatically from Makefile.in by configure.
|
|
#### Start of system configuration section. ####
|
|
|
|
srcdir = .
|
|
|
|
ifeq ($(srcdir),.)
|
|
srcdir = ..
|
|
endif
|
|
|
|
VPATH := $(srcdir)/btree $(srcdir)/hash $(srcdir)/mpool $(srcdir)/recno $(srcdir)/db
|
|
|
|
# Common prefix for machine-independent installed files.
|
|
prefix = /usr/local
|
|
|
|
# Common prefix for machine-dependent installed files.
|
|
exec_prefix = ${prefix}
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
libdir = $(exec_prefix)/Sys/libs
|
|
|
|
INSTALL = /usr/bin/install -c
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
|
|
CC = gcc
|
|
|
|
CFLAGS = -O2
|
|
LDFLAGS =
|
|
|
|
RANLIB = ranlib
|
|
AR = ar
|
|
|
|
#### End system configuration section ####
|
|
|
|
ifeq ($(BASE), morphos)
|
|
FLAVOR_CFLAGS = -mcpu=$(FPU)
|
|
else
|
|
ifeq ($(BASE), morphos-rel)
|
|
FLAVOR_CFLAGS = -mcpu=$(FPU) -mbaserel
|
|
else
|
|
ifeq ($(BASE), morphos-rel32)
|
|
FLAVOR_CFLAGS = -mcpu=$(FPU) -mbaserel32
|
|
else
|
|
FLAVOR_CFLAGS = -m$(CPU) -m$(FPU) -f$(BASE)
|
|
OTHER_FLAGS = -fomit-frame-pointer
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ALL_CFLAGS = $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(INCS) $(DEFS)
|
|
|
|
DEFS = -D__DBINTERFACE_PRIVATE
|
|
INCS = -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
|
|
|
|
.c.o:
|
|
$(CC) -I$(dir $<) $(ALL_CFLAGS) -c $< -o $@
|
|
|
|
SRC := $(wildcard $(srcdir)/btree/*.c) $(wildcard $(srcdir)/db/*.c) \
|
|
$(wildcard $(srcdir)/hash/*.c) $(wildcard $(srcdir)/recno/*.c) \
|
|
$(wildcard $(srcdir)/mpool/*.c)
|
|
|
|
OBJ := $(notdir $(SRC:.c=.o))
|
|
|
|
libdb.a: $(OBJ)
|
|
rm -f $@
|
|
$(AR) rc $@ $(OBJ)
|
|
$(RANLIB) $@
|
|
|
|
clean:
|
|
rm -rf *baserel*
|
|
|
|
clobber: clean
|
|
rm -f Makefile
|