aboutsummaryrefslogtreecommitdiffstats
path: root/www/mplayer-plugin/files/patch-Makefile
blob: af2ae58783447ddb64ff476b287835c511dcbd01 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- Makefile.orig   Sun Jan 19 10:12:43 2003
+++ Makefile    Tue Feb 25 00:51:25 2003
@@ -29,9 +29,9 @@
 # PLUGIN_DEFINES= -DXP_UNIX -DPLUGIN_TRACE
 PLUGIN_DEFINES= -DXP_UNIX -Iinclude -ISource/_gen -I/usr/X11R6/include
 
-CC= gcc
-OPTIMIZER= -g
-CFLAGS=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include
+CC?= gcc
+OPTIMIZER=
+CFLAGS+=  $(OPTIMIZER) $(PLUGIN_DEFINES) -I. -I/usr/include
 
 SRC= Source/mplayerplug-in.c Source/stubs.c 
 OBJ= mplayerplug-in.o stubs.o
@@ -41,7 +41,7 @@
 default all: $(SHAREDTARGET)
 
 $(SHAREDTARGET): $(OBJ)
-   $(CC) -shared -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
+   $(CC) -shared -L/usr/X11R6/lib -lXt -o $(SHAREDTARGET) $(OBJ) $(LDFLAGS)
 
 mplayerplug-in.o: Source/mplayerplug-in.c
    $(CC) -c $(CFLAGS) Source/mplayerplug-in.c