File: Makefile.in

package info (click to toggle)
loki 2.4.7.4-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,156 kB
  • sloc: ansic: 38,653; yacc: 4,974; lex: 946; makefile: 333; sh: 100
file content (57 lines) | stat: -rw-r--r-- 1,119 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
50
51
52
53
54
55
56
57
SHELL = /bin/sh

CC = @CC@
MY_CFLAGS = @CFLAGS@ @extra_cflags@
SED = @SED@
PERL = @PERL@
CP = @CP@
CHMOD = @CHMOD@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
INSTALL_PERM = 755

CFLAGS += $(MY_CFLAGS) -I../include
LDFLAGS := $(LDFLAGS) 
LIBS = -lm 
ALL_LIBS = $(LIBS)

SRC = qavg.c hist.c
PROGS = qavg hist
SCRIPTS = ext count dist freq sort_error

all: qavg hist

qavg: qavg.c
	$(CC) $(CFLAGS) -o $@ qavg.c $(LDFLAGS) $(ALL_LIBS)

hist: hist.c
	$(CC) $(CFLAGS) -o $@ hist.c $(LDFLAGS)

../bin:
	mkdir ../bin

scripts: ../bin
	for file in $(SCRIPTS); do \
	$(SED) 's!+PERLPROG+!$(PERL)!' $$file.in > $(bindir)/loki_$$file; \
	$(CHMOD) $(INSTALL_PERM) $(bindir)/loki_$$file; \
	done

install: $(PROGS) scripts
	for file in $(PROGS); do \
	$(CP) $$file $(bindir)/; \
	$(CHMOD) $(INSTALL_PERM) $(bindir)/$$file ; \
	done

clean:
	rm -f *~ *.o *.a *.bak a.out core seedfile depend

distclean: clean
	rm -f Makefile loki_* $(PROGS)
	rm -rf ../bin

depend: $(SRC) ../include/config.h
	@MAKEDEPEND@ -I../include $(DMALLOC_INC) $(SRC)
	touch depend

# DO NOT DELETE THIS LINE -- make depend depends on it.