summaryrefslogtreecommitdiff
path: root/www/mplayer-plugin/files/patch-Makefile
blob: 54d381a1e0e144a1a313551daacf7ac9a02e4ba4 (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	Tue Sep  9 17:02:57 2003
+++ Makefile	Sun Oct  5 02:29:28 2003
@@ -12,9 +12,9 @@
 
 PLUGIN_DEFINES= -DXP_UNIX -Iinclude -fPIC -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
 STRICTFLAGS= -O3 -Wall -W -Wno-unused-variable -Wno-unused-parameter -Wwrite-strings -Werror
 LDFLAGS= -lpthread
 OBJ= mplayerplug-in.o support.o stubs.o ui.o
@@ -24,7 +24,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 Source/mplayerplug-in.h
 #	$(CC) -c $(STRICTFLAGS) $(CFLAGS) Source/mplayerplug-in.c