summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Hombourger <chombourger@gmail.com>2009-05-29 13:49:32 -0400
committerKristian Høgsberg <krh@redhat.com>2009-05-29 13:49:32 -0400
commite41c5426348028363617d6f0e43b21914e7bb738 (patch)
tree753fcfe2a71e13a399929cb1f6a7f8d73544baf5
parent5af77e7525f42d7c5fa4429a633cf844d6b935f2 (diff)
Use $(CC) and $(DESTDIR)
Makefile.in assumes gcc when linking. This should be changed to $(CC) to allow cross-compiling (which I am). It is also convenient to allow install in a given directory by setting DESTDIR (while keeping prefix to e.g. /usr).
-rw-r--r--Makefile.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile.in b/Makefile.in
index 26c3fdd..a20fc80 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -23,7 +23,7 @@ objs = \
$(objs) : eagle.h eagle-internal.h
libeagle.so : $(objs)
- gcc -o $@ $(objs) -shared $(LDLIBS)
+ $(CC) -o $@ $(objs) -shared $(LDLIBS)
import-glapi :
cp $(MESA_SRC)/src/mesa/main/glheader.h glapi
@@ -39,10 +39,12 @@ import-glapi :
cp $(MESA_SRC)/src/mesa/glapi/glapi_getproc.c glapi
install : libeagle.so eagle.pc
- install -d @libdir@ @includedir@ @libdir@/pkgconfig
- install libeagle.so @libdir@
- install eagle.h @includedir@
- install eagle.pc @libdir@/pkgconfig
+ install -d $(DESTDIR)@libdir@
+ install libeagle.so $(DESTDIR)@libdir@
+ install -d $(DESTDIR)@includedir@
+ install eagle.h $(DESTDIR)@includedir@
+ install -d $(DESTDIR)@libdir@/pkgconfig
+ install eagle.pc $(DESTDIR)@libdir@/pkgconfig
clean :
rm -f *.o glapi/*.o libeagle.so