File: Rules.mk

package info (click to toggle)
pcaputils 0.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 284 kB
  • ctags: 511
  • sloc: ansic: 2,905; makefile: 70; sh: 43
file content (41 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (4)
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
# Standard things

sp 		:= $(sp).x
dirstack_$(sp)	:= $(d)
d		:= $(dir)

# Local variables

OBJS_$(d)	:= \
		$(d)/byte.o \
		$(d)/cfgopt.o \
		$(d)/checksum.o \
		$(d)/file.o \
		$(d)/daemon.o \
		$(d)/net.o \
		$(d)/pcapnet.o \
		$(d)/rate.o \
		$(d)/ring.o \
		$(d)/rng.o \
		$(d)/scanfmt.o \
		$(d)/server.o \
		$(d)/socket.o \
		$(d)/uint.o \
		$(d)/util.o
DEPS_$(d)	:= $(OBJS_$(d):%.o=%.d)
TGTS_$(d)	:= $(d)/util.a

TGT_LIB		:= $(TGT_LIB) $(TGTS_$(d))
CLEAN		:= $(CLEAN) $(TGTS_$(d)) $(OBJS_$(d)) $(DEPS_$(d))

# Local rules

$(d)/util.a: $(OBJS_$(d))
	$(ARCH)

# Standard things

-include	$(DEPS_$(d))

d		:= $(dirstack_$(sp))
sp		:= $(basename $(sp))