summaryrefslogtreecommitdiff
blob: 4f4bd0e403f3d4e8aa056cdbf03736acdc6aab1b (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
--- a/Makefile	2002-12-11 04:36:06.000000000 +0100
+++ b/Makefile_new	2013-03-16 13:04:00.963512605 +0100
@@ -4,23 +4,26 @@
 INSTALLDIR = ${DESTDIR}/usr/lib/gkrellm2/plugins
 
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE)
+FLAGS = -fPIC $(GTK_INCLUDE)
 LIBS = $(GTK_LIB)
 LFLAGS = -shared
 
-CC = gcc $(CFLAGS) $(FLAGS)
+CC = $(CC)
 
 OBJS = gkrellmoon.o MoonRise.o CalcEphem.o Moon.o
 
+all: gkrellmoon.so
+
+%.o: %.c
+	$(CC) $(CFLAGS) $(LDFLAGS) $(FLAGS) -c -o $@ $<
+
 gkrellmoon.so: $(OBJS)
-	$(CC) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS)
+	$(CC) $(CFLAGS) $(FLAGS) $(LDFLAGS) $(OBJS) -o gkrellmoon.so $(LFLAGS) $(LIBS)
 
 clean:
 	rm -f *.o core *.so* *.bak *~
 
 gkrellmoon.o: gkrellmoon.c moon_60.xpm
 
-# %.o: %.c
-
 install: gkrellmoon.so
 	install -c -s -m 644 gkrellmoon.so $(INSTALLDIR)