File: Makefile

package info (click to toggle)
saods9 3.0.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 86,868 kB
  • ctags: 82,021
  • sloc: ansic: 663,637; tcl: 111,403; cpp: 52,727; sh: 27,784; makefile: 6,177; asm: 3,355; lex: 2,890; ada: 1,637; pascal: 1,621; xml: 1,221; yacc: 883; f90: 84; perl: 82; python: 33; fortran: 17; ruby: 13; sed: 12; php: 11
file content (46 lines) | stat: -rw-r--r-- 694 bytes parent folder | download | duplicates (3)
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
include ../make.include

CFLAGS	= $(CCOPT) -I../include

SRC	= checkdns.c

OBJS	= $(SRC:%.c=%.o)

LIB	= libcheckdns.a
SHARED	= libcheckdns.$(SHEXT)

ifdef BUILD_SHARED
all	: $(LIB) $(SHARED)
install	: all
	cp -f $(LIB) $(SHARED) ../lib/.
else
all	: $(LIB)
install	: all
	cp -f $(LIB) ../lib/.
endif

$(SHARED): $(OBJS) $(COBJS)
	$(RM) $@
	$(SHCMD) $@ $(OBJS) $(COBJS)

$(LIB)	: $(OBJS) $(COBJS)
	$(RM) $@
	$(LIBCMD) $@ $(OBJS) $(COBJS)
	$(RANLIB) $@

clean	: FORCE
	rm -f core *~ *#

distclean : clean
	rm -f *.o *.$(SHEXT) *.a

FORCE	:

ifndef DEPENDS
%.d: %.c
	set -e; $(CC) -MM $(CFLAGS) $< \
	| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
	[ -s $@ ] || rm -f $@

include $(SRC:.c=.d)
endif