Dash:
[t2-trunk.git] / package / graphic / normalmap / makefile.patch
blob850983c956d2bccfab14aaa28b01daa73691eb63
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../normalmap/makefile.patch
5 # Copyright (C) 2006 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- gimp-normalmap-1.2.1/Makefile_orig 2006-10-24 19:12:45.000000000 +0100
18 +++ gimp-normalmap-1.2.1/Makefile 2006-10-24 19:16:57.000000000 +0100
19 @@ -1,7 +1,34 @@
21 -OS=$(shell uname -s)
22 -ifeq ($(OS), Linux)
23 -include Makefile.linux
24 -else
25 -include Makefile.win32
26 -endif
27 +GIMPTOOL=gimptool-2.0
29 +CC=gcc
30 +CFLAGS=-O3 -Wall `pkg-config --cflags gtk+-2.0 gtkglext-1.0 gimp-2.0`
31 +LD=gcc
32 +LDFLAGS=
34 +TARGET=normalmap
36 +OBJS=normalmap.o preview3d.o scale.o
38 +LIBS=`pkg-config --libs gtk+-2.0 gtkglext-1.0 gimp-2.0 gimpui-2.0 pangox` \
39 +`pkg-config x11 --libs-only-L` -lGLEW
41 +all: $(TARGET)
43 +$(TARGET): $(OBJS)
44 + $(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(TARGET)
46 +clean:
47 + rm -f *.o $(TARGET)
49 +install: all
50 + $(GIMPTOOL) --install-bin $(TARGET)
52 +.c.o:
53 + $(CC) -c $(CFLAGS) $<
55 +normalmap.o: normalmap.c scale.h preview3d.h Makefile
56 +preview3d.o: preview3d.c scale.h objects/cube.h objects/quad.h \
57 +objects/sphere.h objects/torus.h objects/teapot.h pixmaps/object.xpm \
58 +pixmaps/light.xpm pixmaps/scene.xpm pixmaps/full.xpm Makefile
59 +scale.o: scale.c Makefile