File: makefile

package info (click to toggle)
pileup 1.1-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 268 kB
  • ctags: 113
  • sloc: ansic: 698; makefile: 47
file content (20 lines) | stat: -rwxr-xr-x 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC = gcc
LIBPTHREAD= -lpthread 
PROG = pileup

$(PROG): AdLib.o pileup.o
	$(CC) $(CFLAGS) -o $(PROG) pileup.o AdLib.o -lm $(LIBPTHREAD)

pileup.o: pileup.c
	$(CC) $(CFLAGS) -c pileup.c

AdLib.o: AdLib.c
	$(CC) $(CFLAGS) -c  AdLib.c

install:
	install -s -o root -g root -m 4755 $(PROG) $(DESTDIR)/usr/bin
	install -o root -g root -m 644 calls.dat \
		$(DESTDIR)/var/lib/pileup/calls.dat
	
clean:
	rm -f $(PROG) *.o