36e3a98617
- Respect CC Reported by: miwi [1]
29 lines
704 B
Text
29 lines
704 B
Text
--- Makefile.orig 2005-05-21 04:23:34.000000000 +0400
|
|
+++ Makefile 2013-03-16 09:57:42.000000000 +0400
|
|
@@ -1,21 +1,21 @@
|
|
DESTDIR=
|
|
-PREFIX=/usr
|
|
+PREFIX=%%PREFIX%%
|
|
BINDIR=$(PREFIX)/bin
|
|
|
|
-CC = g++
|
|
+CC ?= g++
|
|
|
|
-objfiles=bpatch.o bzip2.o file.o system.o tmpstore.o deltup.o
|
|
+objfiles=bpatch.o bzip2.o gzip.o file.o system.o tmpstore.o deltup.o
|
|
libs=-lstdc++ -lz -lbz2 -lssl
|
|
|
|
#edelta: edelta.cpp deltup
|
|
# gcc edelta.cpp ${CXXFLAGS} -o edelta
|
|
%.o : %.cpp
|
|
- ${CC} -c $< -o $@ -g #-Wall -pedantic #-DFIXED_FRAMERATE
|
|
+ ${CC} -c $< -o $@ ${CXXFLAGS}
|
|
|
|
all: deltup
|
|
|
|
depend:
|
|
- gcc -MM *.cpp > .depend
|
|
+ ${CC} -MM *.cpp > .depend
|
|
|
|
deltup: $(objfiles)
|
|
${CC} $(objfiles) ${CXXFLAGS} -o deltup $(libs)
|