blob: 429d0745dd29bc6ffde86bed516cafe3b9ac1b83 (
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
|
--- xorg-edit~/sources/Makefile 2006-07-12 19:33:14.000000000 +0200
+++ xorg-edit/sources/Makefile 2006-07-12 20:01:46.000000000 +0200
@@ -5,7 +5,9 @@
# variables
-CXX = `wx-config --cxx`
+CXX ?= `wx-config --cxx`
+LDFLAGS+=`wx-config --libs`
+CXXFLAGS+=`wx-config --cxxflags`
PROGRAM = xorg-edit
@@ -17,14 +19,12 @@
all: $(PROGRAM)
- rm -f *.o
$(PROGRAM): $(OBJECTS)
- $(CXX) -o $(PROGRAM) $(OBJECTS) `wx-config --libs`
-
-$(OBJECTS): $(SOURCES)
- $(CXX) -c $(SOURCES) `wx-config --cxxflags`
+ $(CXX) -o $(PROGRAM) $(OBJECTS) $(LDFLAGS)
+%.o: %.c
+ $(CXX) -o $@ -c $< $(CXXFLAGS)
clean:
rm -f *.o $(PROGRAM)
|