File: Makefile

package info (click to toggle)
pspresent 1.3-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: ansic: 1,407; makefile: 42
file content (32 lines) | stat: -rw-r--r-- 649 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
#
# pspresent: PostScript presentation tool
# Copyright (C) Matthew Chapman 2001-2003
#

# You may need to change these paths
X11_CFLAGS=-I/usr/X11R6/include
X11_LDLIBS=-L/usr/X11R6/lib -lX11

# Remove the following two lines to disable XINERAMA support
XINERAMA_CFLAGS=-DHAVE_LIBXINERAMA
XINERAMA_LDLIBS=-lXinerama

CC = gcc
CFLAGS = -Wall -O2 $(X11_CFLAGS) $(XINERAMA_CFLAGS)
LDLIBS = $(X11_LDLIBS) $(XINERAMA_LDLIBS)
LDFLAGS ?= 

TARGET = pspresent
OBJS = pspresent.o gs.o ps.o

$(TARGET): $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS) $(LDLIBS) 

clean:
	rm -f $(TARGET) $(OBJS)

.SUFFIXES:
.SUFFIXES: .c .o

.c.o:
	$(CC) $(CFLAGS) -o $@ -c $<