blob: 17e78fc473622a56afb5d0c66de6a10cac59f45d (
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
25
26
27
28
29
30
31
32
33
|
--- Makefile.orig 2010-03-23 19:52:15.000000000 +0300
+++ Makefile 2010-07-24 00:10:22.000000000 +0400
@@ -1,12 +1,9 @@
-#CXX = g++
-CXX = colorgcc
-#CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb
-CXXFLAGS = -ffunction-sections -fdata-sections -Wall -Os -fno-exceptions -fno-unwind-tables -fno-rtti -minline-all-stringops -ggdb
+CXXFLAGS += -Wall -fno-exceptions -fno-unwind-tables -fno-rtti -I${LOCALBASE}/include
# -Weffc++ -U_FORTIFY_SOURCE
# NDEBUG pro release ?
-LDFLAGS = -Wl,--gc-sections -L/usr/X11R6/lib
-LIBS = /usr/local/lib/libglfw.a -pthread -lGL -lm -lGLU -lX11 -lXrandr
+LDFLAGS = -L${LOCALBASE}/lib
+LIBS = ${LOCALBASE}/lib/libglfw.a ${PTHREAD_LIBS} -lGL -lm -lGLU -lX11 -lXrandr
INCLUDES =
FILE2C = utils/file2c.rb
@@ -63,14 +60,4 @@
DEPDIR = .deps
df = $(DEPDIR)/$(*F)
-%.o : %.cpp
- @$(MAKEDEPEND); \
- cp $(df).d $(df).P; \
- sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
- -e '/^$$/ d' -e 's/$$/ :/' < $(df).d >> $(df).P; \
- rm -f $(df).d
- $(COMPILE.cpp) -o $@ $<
-
--include $(SRCS:%.cpp=$(DEPDIR)/%.P)
-
# DO NOT DELETE
|