home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
ixemul-45.0-src.tgz
/
tar.out
/
contrib
/
ixemul
/
general
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1996-09-28
|
1KB
|
73 lines
#### 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@
RANLIB = @RANLIB@
AR = ar
#### End system configuration section ####
# I *love* GNU make!
define catenate
/bin/echo -n creating $@...
/bin/echo "$(^:%=#include \"%\"\n)" >$@
/bin/echo done
endef
FLAVOR_CFLAGS = -m$(CPU) -m$(FPU)
ALL_CFLAGS = $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) -g $(INCS)
INCS = -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
LIB = libgeneral.a
.c.o:
$(CC) $(ALL_CFLAGS) -c $< -o $@
A4_SRC = glob.c
SRC = $(filter-out $(A4_SRC),$(notdir $(wildcard $(srcdir)/*.c)))
$(LIB): all.o a4.o
rm -f $@
$(AR) rv $@ $^
$(RANLIB) $@
all.c: $(SRC)
@$(catenate)
a4.c: $(A4_SRC)
@$(catenate)
a4.o: a4.c
$(CC) $(ALL_CFLAGS) -ffixed-a4 -c $< -o $@
clean:
rm -rf 680?0
clobber: clean
rm -f Makefile