-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
89 lines (65 loc) · 2.03 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
PRODUCT = @PRODUCT@
VERSION = @VERSION@
SHELL = /bin/sh
top_srcdir = @top_srcdir@
srcdir = @srcdir@
.SUFFIXES:
.SUFFIXES: .c .o
CC = @CC@
DEFINES = @DEFS@ -DPRODUCT=\"$(PRODUCT)\" -DVERSION=\"$(VERSION)\"
CFLAGS = -I. @CFLAGS@ $(DEFINES)
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
INSTALL = @INSTALL@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
sysconfdir = @sysconfdir@
datarootdir = @datarootdir@
DISTFILES =
TARGET1=gluff
SOURCES1=gluff.c
OBJS1=gluff.o
TARGETS=$(TARGET1)
SOURCES=$(SOURCES1)
HEADERS=
OBJS=$(OBJS1)
DISTSRC=aclocal.m4 config.h.in configure configure.ac *.patch *.sql $(SOURCES) $(HEADERS) install-sh Makefile.in mkinstalldirs README scripts/gluff
DISTBIN=$(TARGETS) *.patch *.sql README scripts/gluff
all: $(TARGETS)
install: all
$(top_srcdir)/mkinstalldirs $(bindir)
$(INSTALL) $(TARGET1) $(bindir)/
$(TARGET1): $(OBJS1)
$(CC) $(CFLAGS) -o $(TARGET1) $(OBJS1) $(LDFLAGS) $(LIBS)
$(OBJS1): $(SOURCES1)
clean:
/bin/rm -f $(TARGETS) *.o core $(PRODUCT)-*-bin.tar.gz* $(PRODUCT)-*-src.tar.gz*
distclean: clean config-clean
config-clean: confclean-recursive
confclean-recursive: cfg-clean
cfg-clean:
/bin/rm -f Makefile config.h config.status config.cache config.log
mostlyclean: clean
maintainer-clean: clean
package: all
tar czf $(PRODUCT)-$(VERSION)-bin.tar.gz $(DISTBIN)
md5sum $(PRODUCT)-$(VERSION)-bin.tar.gz > $(PRODUCT)-$(VERSION)-bin.tar.gz.md5
tar czf $(PRODUCT)-$(VERSION)-src.tar.gz $(DISTSRC)
md5sum $(PRODUCT)-$(VERSION)-src.tar.gz > $(PRODUCT)-$(VERSION)-src.tar.gz.md5
# automatic re-running of configure if the configure.ac file has changed
${srcdir}/configure: configure.ac
cd ${srcdir} && autoconf
# autoheader might not change config.h.in, so touch a stamp file
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.ac
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config.h: stamp-h
stamp-h: config.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck