File: Makefile

package info (click to toggle)
dpkg 1.10.28
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 9,408 kB
  • ctags: 2,302
  • sloc: ansic: 16,124; perl: 5,042; sh: 4,819; cpp: 4,405; makefile: 1,018; sed: 16
file content (31 lines) | stat: -rw-r--r-- 417 bytes parent folder | download
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

srcdir		= .
top_srcdir	= ..

default: all
include ../Makefile.conf

SOURCES		= getopt.c getopt1.c long-options.c closeout.c obstack.c

OBJECTS		= $(patsubst %.c, %.o, $(SOURCES))
GENFILES	= $(OBJECTS) libopt.a

.PHONY: all
all:: libopt.a
	
libopt.a: $(OBJECTS)
	$(AR) r $@ $^
	$(RANLIB) $@

.PHONY: install
install:: all

.PHONY: clean
clean::
	$(RM) $(GENFILES)


.PHONY: distclean
cvslean:: clean
	$(RM) Makefile