blob: 41cc7fa22a46c149d1af79d72b254d5d87e214e1 (
plain)
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
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-ab,v 1.3 2001/08/23 15:56:41 jlam Exp $
--- src/Makefile.orig Tue Apr 10 08:37:01 2001
+++ src/Makefile
@@ -9,7 +9,7 @@
# This gets definitions for CC, CFLAGS, BINDIR etc.
include ../config.mk
-CFLAGS+=-DBACKEND_$(BACKEND) `gtk-config --cflags`
+CFLAGS+=-DBACKEND_$(BACKEND) `${GTK_CONFIG} --cflags`
# I could do this less horribly if I made it GNU-make-specific,
# but I decided not to. And here we are. :-(
@@ -18,19 +18,19 @@
# `--libs' case.
#
BACKEND_CFLAGS=`case "$(BACKEND)" in \
- IMLIB1) imlib-config --cflags-gdk ;; \
- GDK_PIXBUF) gdk-pixbuf-config --cflags ;; \
+ IMLIB1) ${IMLIB_CONFIG} --cflags-gdk ;; \
+ GDK_PIXBUF) ${GDK_PIXBUF_CONFIG} --cflags ;; \
esac`
BACKEND_LIBS=`case "$(BACKEND)" in \
- IMLIB1) imlib-config --libs-gdk ;; \
- GDK_PIXBUF) gdk-pixbuf-config --libs ;; \
+ IMLIB1) ${IMLIB_CONFIG} --libs-gdk ;; \
+ GDK_PIXBUF) ${GDK_PIXBUF_CONFIG} --libs ;; \
esac`
# `all' makes install-info too, as it's a bit weird to have something
# compile when you do `make install'. :-)
# (It would also be weird to have it made by the `doc' Makefile, IMHO.)
-all: xzgv install-info
+all: xzgv
OBJS= main.o \
filedetails.o gotodir.o updatetn.o confirm.o help.o \
@@ -43,7 +43,7 @@
backend.o
xzgv: $(OBJS)
- $(CC) $(CFLAGS) -o xzgv $(OBJS) $(BACKEND_LIBS) -ljpeg -lpng -ltiff -lz
+ $(CC) $(CPPFLAGS) $(CFLAGS) -o xzgv $(OBJS) $(BACKEND_LIBS) $(LDFLAGS) -ljpeg -lpng -ltiff -lz
backend.o:
$(CC) $(CFLAGS) $(BACKEND_CFLAGS) -c -o backend.o backend.c
|