File: Makefile

package info (click to toggle)
imview 1.1.9h-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,528 kB
  • sloc: cpp: 32,590; sh: 2,664; ansic: 1,900; makefile: 811; exp: 112; python: 88
file content (38 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (9)
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
#
# Simple makefile for demo client code
#

CC=gcc
CFLAGS = -g -DHAVE_POSIX_IPC -DHAVE_SYSV_IPC
LDFLAGS = -ltiff -lm -lrt

SOURCES = democlient.c  imclient.c  liarwrap.c

OBJECTS = ${SOURCES:.c=.o}

TARGET = democlient


ifeq ($(MYZDIR), Solaris)
	CFLAGS += -DPOSIX_IPC_PREFIX='"/"'
	LDFLAGS += -lsocket -lnsl
endif



.c.o:
	${CC} ${CFLAGS} -c $<

${TARGET}: ${OBJECTS}
	${CC} ${CFLAGS} -o $@ ${OBJECTS} ${LDFLAGS}

depend: ${SOURCES}
	${CC} ${CFLAGS} -M $^ > makedepend

clean:
	-rm ${OBJECTS} ${TARGET}

makedepend:
	touch makedepend

include makedepend