74 lines
1.4 KiB
Makefile
74 lines
1.4 KiB
Makefile
#### Start of system configuration section. ####
|
|
|
|
srcdir = @srcdir@
|
|
|
|
ifeq ($(srcdir),.)
|
|
srcdir = ..
|
|
endif
|
|
|
|
VPATH := $(srcdir)
|
|
|
|
# Common prefix for machine-independent installed files.
|
|
prefix = @prefix@
|
|
|
|
# Common prefix for machine-dependent installed files.
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = $(exec_prefix)/bin
|
|
libdir = $(exec_prefix)/Sys/libs
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
CC = @CC@
|
|
|
|
CFLAGS = @CFLAGS@
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
ifeq ($(BASE), morphos)
|
|
RANLIB = @RANLIB@
|
|
AR = @AR@
|
|
else
|
|
RANLIB = m68k-amigaos-ranlib
|
|
AR = m68k-amigaos-ar
|
|
endif
|
|
|
|
#### 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)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
ALL_CFLAGS = $(CFLAGS) $(OTHER_CFLAGS) $(FLAVOR_CFLAGS) $(INCS) $(DEFS)
|
|
|
|
DEFS = -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DNOID
|
|
INCS = -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
|
|
|
|
.c.o:
|
|
$(CC) $(ALL_CFLAGS) -m68020 -m68881 -c $< -o $@
|
|
|
|
SRC = $(wildcard $(srcdir)/*.c)
|
|
|
|
OBJ = $(notdir $(SRC:.c=.o))
|
|
|
|
libstatic.a: $(OBJ)
|
|
rm -f $@
|
|
$(AR) rc $@ $(OBJ)
|
|
$(RANLIB) $@
|
|
|
|
clean:
|
|
rm -rf *baserel* *morphos*
|
|
|
|
clobber: clean
|
|
rm -f Makefile
|