summaryrefslogtreecommitdiff
blob: c260ad1c88bf9096ed7574aaa061373fe05d5b05 (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
diff -ur AlsaMixer.app-0.1.orig/Makefile AlsaMixer.app-0.1/Makefile
--- AlsaMixer.app-0.1.orig/Makefile	2004-09-30 23:44:06.000000000 +0300
+++ AlsaMixer.app-0.1/Makefile	2008-06-28 08:40:28.000000000 +0300
@@ -4,22 +4,22 @@
 
 DESTDIR =
 GNUSTEP_BINDIR = /usr/local/GNUstep/Apps/AlsaMixer.app
-X11_BINDIR = /usr/X11R6/bin
+X11_BINDIR = /usr/bin
 
-CXX=c++
-CXXFLAGS += -Wall -pedantic -fno-rtti -fno-exceptions -O2 -I/usr/X11R6/include
-LDFLAGS += -L/usr/X11R6/lib -lXpm -lXext -lX11 -lasound
+CXX ?= g++
+CXXFLAGS += -Wall -pedantic -fno-rtti -fno-exceptions
+LIBS = -lXpm -lXext -lX11 -lasound
 
 OBJECTS = Main.o Mixer.o Xpm.o AMixer/AMixer.o AMixer/AItem.o AMixer/AChannel.o
 
 all: AlsaMixer.app
 
 AlsaMixer.app: $(OBJECTS)
-	$(CXX) $(OBJECTS) -o $@ $(LDFLAGS)
+	$(CXX) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
 
 .PHONY:	install clean distclean
 
-install: install-gnustep
+install: install-x11
 
 install-gnustep: all
 	install -d  $(DESTDIR)$(GNUSTEP_BINDIR)