i-bash/examples/loadables/Makefile.in

170 lines
3.3 KiB
Makefile
Raw Normal View History

1996-12-23 17:02:34 +00:00
#
# Simple makefile for the sample loadable builtins
#
1998-04-17 19:52:44 +00:00
# This includes some boilerplate definitions added by configure, but will
# still need hand-editing
#
# Include some boilerplate Gnu makefile definitions.
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
libdir = @libdir@
infodir = @infodir@
includedir = @includedir@
topdir = @top_srcdir@
BUILD_DIR = @BUILD_DIR@
srcdir = @srcdir@
VPATH = .:@srcdir@
@SET_MAKE@
CC = @CC@
RM = rm -f
SHELL = /bin/sh
1996-12-23 17:02:34 +00:00
# SunOS 4
1998-04-17 19:52:44 +00:00
#PICFLAG = -pic
1996-12-23 17:02:34 +00:00
# Some versions of gcc, esp. on NetBSD and FreeBSD
1998-04-17 19:52:44 +00:00
PICFLAG = -fpic
1996-12-23 17:02:34 +00:00
# Linux -- could also be -fpic
#PICFLAG = -fPIC
# SunOS 5
#PICFLAG = -K pic
# SVR4, SVR4.2, Irix
#PICFLAG = -K PIC
1998-04-17 19:52:44 +00:00
# BSD/OS 2.1, BSD/OS 3.x
1996-12-23 17:02:34 +00:00
#PICFLAG =
# AIX 4.2
#PICFLAG = -K
1998-04-17 19:52:44 +00:00
# SunOS 4, BSD/OS 2.1, BSD/OS 3.x, SVR4.2, SVR4, Linux, AIX 4.2, etc.
1996-12-23 17:02:34 +00:00
LD = ld
# SunOS 5, Linux
1998-04-17 19:52:44 +00:00
#LD = ${CC}
1996-12-23 17:02:34 +00:00
# SunOS 4
1998-04-17 19:52:44 +00:00
#LDOPT = -assert pure-text
1996-12-23 17:02:34 +00:00
# OSF/1, Digital UNIX
#LDOPT = -shared -soname $@ -expect_unresolved '*'
1998-04-17 19:52:44 +00:00
# SunOS 5 using sun cc
1996-12-23 17:02:34 +00:00
#LDOPT = -dy -z text -G -i -h $@
1998-04-17 19:52:44 +00:00
# SunOS 5 using gcc with Sun ld
#LDOPT = -shared -Wl,-dy -Wl,-G -Wl,-i
1996-12-23 17:02:34 +00:00
# SVR4, SVR4.2
#LDOPT = -dy -z text -G -h $@
# NetBSD, FreeBSD -- might also need -r
1998-04-17 19:52:44 +00:00
LDOPT = -x -Bshareable
1996-12-23 17:02:34 +00:00
# Linux
#LDOPT = -shared
1998-04-17 19:52:44 +00:00
# BSD/OS 2.1, BSD/OS 3.x
1996-12-23 17:02:34 +00:00
#LDOPT = -r
# AIX 4.2
#LDOPT = -bdynamic -bnoentry -bexpall -G
# other libraries to link the shared object against
# BSD/OS 2.1
#LDLIBS = -lc_s.2.1.0
1998-04-17 19:52:44 +00:00
# BSD/OS 3.0, BSD/OS 3.1
#LDLIBS = -lc_s.3.0.0
1996-12-23 17:02:34 +00:00
1998-04-17 19:52:44 +00:00
INC = -I. -I.. -I$(topdir) -I$(topdir)/lib -I$(topdir)/builtins \
-I$(BUILD_DIR) -I$(BUILD_DIR)/lib -I$(BUILD_DIR)/builtins
1996-12-23 17:02:34 +00:00
.c.o:
$(CC) $(PICFLAG) $(CFLAGS) $(INC) -c -o $@ $<
1998-04-17 19:52:44 +00:00
ALLPROG = print truefalse sleep pushd finfo logname basename dirname \
tty pathchk tee head rmdir sprintf
OTHERPROG = necho getconf hello cat
all: $(ALLPROG)
others: $(OTHERPROG)
everything: all others
1996-12-23 17:02:34 +00:00
sprintf: sprintf.o
$(LD) $(LDOPT) -o $@ sprintf.o $(LDLIBS)
print: print.o
$(LD) $(LDOPT) -o $@ print.o $(LDLIBS)
necho: necho.o
$(LD) $(LDOPT) -o $@ necho.o $(LDLIBS)
getconf: getconf.o
$(LD) $(LDOPT) -o $@ getconf.o $(LDLIBS)
hello: hello.o
$(LD) $(LDOPT) -o $@ hello.o $(LDLIBS)
truefalse: truefalse.o
$(LD) $(LDOPT) -o $@ truefalse.o $(LDLIBS)
sleep: sleep.o
$(LD) $(LDOPT) -o $@ sleep.o $(LDLIBS)
pushd: pushd.o
$(LD) $(LDOPT) -o $@ pushd.o $(LDLIBS)
finfo: finfo.o
$(LD) $(LDOPT) -o $@ finfo.o $(LDLIBS)
cat: cat.o
$(LD) $(LDOPT) -o $@ cat.o $(LDLIBS)
logname: logname.o
$(LD) $(LDOPT) -o $@ logname.o $(LDLIBS)
basename: basename.o
$(LD) $(LDOPT) -o $@ basename.o $(LDLIBS)
dirname: dirname.o
$(LD) $(LDOPT) -o $@ dirname.o $(LDLIBS)
tty: tty.o
$(LD) $(LDOPT) -o $@ tty.o $(LDLIBS)
pathchk: pathchk.o
$(LD) $(LDOPT) -o $@ pathchk.o $(LDLIBS)
tee: tee.o
$(LD) $(LDOPT) -o $@ tee.o $(LDLIBS)
rmdir: rmdir.o
$(LD) $(LDOPT) -o $@ rmdir.o $(LDLIBS)
head: head.o
$(LD) $(LDOPT) -o $@ head.o $(LDLIBS)
1998-04-17 19:52:44 +00:00
clean:
$(RM) $(ALLPROG) $(OTHERPROG) *.o
mostlyclean: clean
distclean maintainer-clean: clean
$(RM) Makefile
print.o: print.c
truefalse.o: truefalse.c
sleep.o: sleep.c
pushd.o: pushd.c
finfo.o: finfo.c
logname.o: logname.c
basename.o: basename.c
dirname.o: dirname.c
tty.o: tty.c
pathchk.o: pathchk.c
tee.o: tee.c
head.o: head.c
rmdir.o: rmdir.c
sprintf.o: sprintf.c
necho.o: necho.c
getconf.o: getconf.c
hello.o: hello.c
cat.o: cat.c