File: Makefile

package info (click to toggle)
pcrd 0.10-2
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 112 kB
  • ctags: 113
  • sloc: ansic: 1,210; makefile: 60
file content (35 lines) | stat: -rw-r--r-- 760 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
32
33
34
35
###############################################################################
#
#Makefile for 'pcrd' 
#
###############################################################################

CC=cc
CFLAGS=-g -O2 -Wall

foo:
	@echo "Target(s): solaris linux freebsd debug_solaris debug_linux debug_freebsd clean"

freebsd: pcrd.c
	$(CC) $(CFLAGS) -o pcrd pcrd.c

debug_freebsd:    pcrd.c
	$(CC) $(CFLAGS) -ggdb -o pcrd pcrd.c

linux: pcrd.c
	$(CC) $(CFLAGS) -DLINUX -o pcrd pcrd.c

solaris: pcrd.c
	cc $(CFLAGS) -DSOLARIS -o pcrd pcrd.c -lsocket -lnsl

debug_linux:    pcrd.c
	$(CC) $(CFLAGS) -DLINUX -ggdb -o pcrd pcrd.c

debug_solaris:  pcrd.c
	cc $(CFLAGS) -DSOLARIS -g -o pcrd pcrd.c -lsocket -lnsl

all: pcrd.c
	$(CC) $(CFLAGS) -o pcrd pcrd.c

clean: 
	rm pcrd