File: Makefile.in

package info (click to toggle)
modutils 2.4.26-1.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,724 kB
  • ctags: 1,708
  • sloc: ansic: 16,932; sh: 2,998; makefile: 549; lex: 490; yacc: 375
file content (49 lines) | stat: -rw-r--r-- 994 bytes parent folder | download | duplicates (2)
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
VPATH	= @srcdir@
srcdir	= @srcdir@
include	../Makefile.common

DEFS = -I$(srcdir)/../include -D_GNU_SOURCE @DEFS@
DEFS += -DELF_MACHINE_H='"elf_$(ARCH).h"' -DARCH_$(ARCH) $(EXTRA_DEFS)

%.o: %.c
	$(CC) $(CFLAGS) $(DEFS) -c -o $@ $<

######################################################################

all: .depend libutil.a

OBJS = xmalloc.o xrealloc.o xstrcat.o xstrdup.o xsystem.o \
	logger.o modstat.o \
	meta_expand.o config.o snap_shot.o arch64.o gzfiles.o sys_nim.o \
	xftw.o
ifneq ($(USE_SYSCALL),n)
OBJS += sys_cm.o sys_dm.o sys_gks.o sys_qm.o
endif
ifneq ($(COMPAT_2_0),n)
OBJS += sys_oim.o
endif

meta_expand.o: meta_expand.c
	$(CC) $(CFLAGS) $(DEFS) @HAVE_WORDEXP@ @HAVE_GLOB@ -c $<

libutil.a: $(OBJS)
	$(AR) rv $@ $?
	$(RANLIB) $@

clean:
	rm -f *.o *.a

realclean: clean
	rm -f .depend

distclean: realclean
	rm -f Makefile

install-bin: all

dep depend .depend: $(OBJS:.o=.c)
	$(CC) -M $(CFLAGS) $(DEFS) $^ > .depend

ifeq (.depend,$(wildcard .depend))
include .depend
endif