File: Makefile

package info (click to toggle)
mclient 2.8-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 76 kB
  • ctags: 27
  • sloc: ansic: 485; makefile: 61
file content (28 lines) | stat: -rw-r--r-- 376 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
CC=gcc
objects=mclient.o
prog=mclient
CFLAGS=-g -O2 -Wall 
PG=
LIBS=

ifdef SOLARIS
LIBS+=-lsocket -lnsl
CFLAGS+=-DSOLARIS
endif

ifdef DEBUG
CFLAGS+=-DDEBUG
endif

ifdef DEFAULTPORT
CFLAGS+=-DDEFAULTPORT=$(DEFAULTPORT)
endif

$(prog): $(objects)
	$(CC) -o $(prog) $(objects) $(LIBS)

clean:
	rm -f $(prog) *.o

mclient.o : mclient.c
	$(CC) $(PG) $(CFLAGS) -c -o $@ mclient.c