File: Makefile

package info (click to toggle)
pspresent 1.3-4
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, squeeze, stretch, wheezy
  • size: 92 kB
  • ctags: 92
  • sloc: ansic: 818; makefile: 68
file content (31 lines) | stat: -rw-r--r-- 625 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
#
# 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)

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

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

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

.SUFFIXES:
.SUFFIXES: .c .o

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