home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
util
/
misc
/
fifolib38_1.lha
/
Makefile
< prev
next >
Wrap
Makefile
|
1995-12-20
|
3KB
|
98 lines
# Generated automatically from Makefile.in by configure.
# GNU-Makefile for fifo library
# If configure doesn't work for you ({} globbed in config.cache), your
# pdksh is outdated, get a version newer than November 95.
# You may prefer simply . (current directory)
srcdir = .
prefix = /gnu
exec_prefix = ${prefix}
bindir = $(exec_prefix)/bin
# You may prefer libs: and l:
libsdir = $(exec_prefix)/Sys/libs
ldir = $(exec_prefix)/Sys/l
# You may prefer $(prefix)/os-include
incdir = $(prefix)/include
infodir = $(prefix)/info
fddir = $(prefix)/fd
INSTALL = /bin/install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
CC = gcc
RM = rm
DEFS =
LIBS =
# ignored, Fred Fish's configure throws -O2 into CFLAGS
CFLAGS = -O2
LDFLAGS =
INCLUDES = -I$(srcdir)
# don't let CFLAGS, LDFLAGS get in my way, ignore them
OUR_CFLAGS = $(DEFS) -O2 -Wall -msmall-code -noixemul $(INCLUDES)
OUR_LDFLAGS = -Wl,-x
# -noixemul (optional) makes independent (2.0) binaries for small systems
# fifo.library, fifo-handler need neither ixemul nor libnix, just RemCLI and testfifo
# -DUSE_SIGNAL if you use neither DICE nor libnix, e.g. ixemul
# -msmall-code passes -l to as and -shortdata to ld
# -I$(srcdir) so <libraries/fifo.h> is found there
# -Wl,-x to keep only external symbols (no dreaded __gnu_compiled_c)
# -nostartfiles is necessary because htags.s and tag.s contain startup code
# -nostdlib implies -nostartfiles
.SUFFIXES: .s .c .c~
.s.o:
$(CC) $(OUR_CFLAGS) -c $<
.c.o:
$(CC) $(OUR_CFLAGS) -c $<
all: fifo-handler fifo.library RemCLI testfifo
# with optimization on, needs no link library at all
fifo.library: tag.o lib.o fifo.o
$(CC) -nostdlib $(OUR_CFLAGS) $(OUR_LDFLAGS) -o $@ $^
tag.o: tag.s
lib.o: lib.c defs.h
fifo.o: fifo.c defs.h
# still needs -lamiga
fifo-handler: htag.o fifo-handler.o
$(CC) -nostdlib $(OUR_CFLAGS) $(OUR_LDFLAGS) -o $@ $^ -lamiga
htag.o: htag.s
fifo-handler.o: fifo-handler.c handler.h
RemCLI: remcli.o
$(CC) $(OUR_CFLAGS) $(OUR_LDFLAGS) -o $@ $^
testfifo: testfifo.o
$(CC) $(OUR_CFLAGS) $(OUR_LDFLAGS) -o $@ $^
install:
$(INSTALL_PROGRAM) fifo-handler $(ldir)/fifo-handler
$(INSTALL_PROGRAM) fifo.library $(libsdir)/fifo.library
$(INSTALL_PROGRAM) RemCLI $(bindir)/RemCLI
$(INSTALL_DATA) $(srcdir)/clib/fifo_protos.h $(incdir)/clib/fifo_protos.h
$(INSTALL_DATA) $(srcdir)/inline/fifo.h $(incdir)/inline/fifo.h
$(INSTALL_DATA) $(srcdir)/libraries/fifo.h $(incdir)/libraries/fifo.h
$(INSTALL_DATA) $(srcdir)/proto/fifo.h $(incdir)/proto/fifo.h
$(INSTALL_DATA) $(srcdir)/fd/fifo_lib.fd $(fddir)/fifo_lib.fd
clean:
$(RM) -f *.o *!
clobber: clean
$(RM) -f fifo-handler fifo.library testfifo RemCLI