-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.in
92 lines (67 loc) · 1.89 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
87
88
89
90
91
92
@SET_MAKE@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
srcdir = @srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
libdir = @libdir@
SFDC = @SFDC@
CC = @CC@
AR = @AR@
RANLIB = @RANLIB@
CFLAGS = @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
ARFLAGS = @ARFLAGS@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
SOURCES = debug.c
SER_OBJECTS = kdebug.o
PAR_OBJECTS = pdebug.o
OBJECTS = $(SER_OBJECTS) $(PAR_OBJECTS)
TARGETS = libdebug.a #libddebug.a
k%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -DUSE_SERIAL -c $^ $(OUTPUT_OPTION)
p%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -DUSE_PARALELL -c $^ $(OUTPUT_OPTION)
all: $(TARGETS)
clean:
$(RM) $(OBJECTS) $(TARGETS) config.log
distclean: clean
$(RM) -r autom4te.cache config.h config.status stamp-h Makefile \
exec_dbg_inline.h \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz
libdebug.a: $(SER_OBJECTS)
$(AR) $(ARFLAGS) $@ $^
libddebug.a: $(PAR_OBJECTS)
$(AR) $(ARFLAGS) $@ $^
test: test.c libdebug.a
install: all
$(INSTALL) -d $(libdir)
$(INSTALL_DATA) $(TARGETS) $(libdir)
tgz: distclean
cp -r $(srcdir) /tmp/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
(cd /tmp && tar cfvz - --exclude=CVS \
$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)) \
> $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz
$(RM) -r /tmp/$(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
#
# Auto-remake autoconf stuff
########################################
${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