| 1 |
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. |
| 2 |
# This Makefile.in is free software; the Free Software Foundation |
| 3 |
# gives unlimited permission to copy and/or distribute it, |
| 4 |
# with or without modifications, as long as this notice is preserved. |
| 5 |
|
| 6 |
# This program is distributed in the hope that it will be useful, |
| 7 |
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
| 8 |
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 9 |
# PARTICULAR PURPOSE. |
| 10 |
|
| 11 |
|
| 12 |
SHELL = @SHELL@ |
| 13 |
|
| 14 |
srcdir = @srcdir@ |
| 15 |
top_srcdir = @top_srcdir@ |
| 16 |
VPATH = @srcdir@ |
| 17 |
prefix = @prefix@ |
| 18 |
exec_prefix = @exec_prefix@ |
| 19 |
|
| 20 |
bindir = @bindir@ |
| 21 |
datadir = @datadir@ |
| 22 |
exec_prefix = @exec_prefix@ |
| 23 |
includedir = @includedir@ |
| 24 |
infodir = @infodir@ |
| 25 |
libdir = @libdir@ |
| 26 |
libexecdir = @libexecdir@ |
| 27 |
localstatedir = @localstatedir@ |
| 28 |
mandir = @mandir@ |
| 29 |
oldincludedir = @oldincludedir@ |
| 30 |
sbindir = @sbindir@ |
| 31 |
sharedstatedir = @sharedstatedir@ |
| 32 |
sysconfdir = @sysconfdir@ |
| 33 |
|
| 34 |
@SET_MAKE@ |
| 35 |
CC = @CC@ |
| 36 |
CFLAGS = @CFLAGS@ |
| 37 |
CPPFLAGS = @CPPFLAGS@ |
| 38 |
EXTRACPPFLAGS = -I$(top_srcdir) |
| 39 |
DEFS = @DEFS@ -DDEF_LOGFILE=\"$(logfile)\" -DDEF_CONFFILE=\"$(conffile)\" -DDEF_PATH=\"$(mp3path)\" -DDEF_HTMLFILE=\"$(htmlfile)\" |
| 40 |
LIBS = @LIBS@ |
| 41 |
LDFLAGS = @LDFLAGS@ |
| 42 |
LIBTOOL = $(CC) |
| 43 |
INSTALL = @INSTALL@ |
| 44 |
|
| 45 |
conffile = $(sysconfdir)/ample.conf |
| 46 |
htmlfile = $(sysconfdir)/ample.html |
| 47 |
logdir = $(localstatedir)/log |
| 48 |
logfile = $(logdir)/ample.log |
| 49 |
mp3path = $(datadir)/mp3 |
| 50 |
|
| 51 |
PROGRAMS = ample |
| 52 |
SOURCES = ample.c client.c entries.c configuration.c helper.c base64.c |
| 53 |
OBJECTS = ample.o client.o entries.o configuration.o helper.o base64.o |
| 54 |
COMPILE = $(CC) $(CFLAGS) $(CPPFLAGS) $(EXTRACPPFLAGS) $(DEFS) |
| 55 |
LINK = $(LIBTOOL) $(LDFLAGS) |
| 56 |
|
| 57 |
all: ample |
| 58 |
|
| 59 |
ample: $(OBJECTS) |
| 60 |
$(LINK) $(OBJECTS) $(LIBS) -o $@ |
| 61 |
|
| 62 |
.c.o: |
| 63 |
$(COMPILE) -c $< |
| 64 |
|
| 65 |
install: |
| 66 |
@$(INSTALL) -d $(bindir) |
| 67 |
@for i in $(PROGRAMS); do \ |
| 68 |
echo "Installing $$i ..."; \ |
| 69 |
$(INSTALL) -s $$i $(bindir); \ |
| 70 |
done |
| 71 |
@$(INSTALL) -d $(logdir) |
| 72 |
|
| 73 |
uninstall: |
| 74 |
@for i in $(PROGRAMS); do \ |
| 75 |
echo "Removing $$i ..."; \ |
| 76 |
rm -f $(bindir)/$$i; \ |
| 77 |
done |
| 78 |
|
| 79 |
clean: |
| 80 |
rm -f *.o $(PROGRAMS) |
| 81 |
|
| 82 |
maint-clean: |
| 83 |
rm -f *.o *~ Makefile ample |
| 84 |
|
| 85 |
dist-clean: |
| 86 |
rm -f *.o *~ Makefile ample |
| 87 |
rm -rf CVS |
| 88 |
|
| 89 |
.PHONY: all install clean maint-clean dist-clean |
| 90 |
|
| 91 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
| 92 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
| 93 |
.NOEXPORT: |