diff options
author | Cedric Hombourger <chombourger@gmail.com> | 2009-05-29 13:49:32 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2009-05-29 13:49:32 -0400 |
commit | e41c5426348028363617d6f0e43b21914e7bb738 (patch) | |
tree | 753fcfe2a71e13a399929cb1f6a7f8d73544baf5 /Makefile.in | |
parent | 5af77e7525f42d7c5fa4429a633cf844d6b935f2 (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).
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 12 |
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 |