CVS: jtag/msp430 makefile,1.7,1.8
Chris Liechti <[email protected]>
| Newsgroups | gmane.comp.hardware.texas-instruments.msp430.gcc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mspgcc/jtag/msp430
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4388/msp430
Modified Files:
makefile
Log Message:
fixes to allow compiler override with CC=...
Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/jtag/msp430/makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -w -d -r1.7 -r1.8
--- makefile 25 Sep 2005 02:32:41 -0000 1.7
+++ makefile 13 Oct 2005 01:04:39 -0000 1.8
@@ -16,6 +16,7 @@
dependency_libs = -L../hardware_access -lHIL
targets = MSP430mspgcc.dll libMSP430mspgcc.a
else
+ CFLAGS += -fPIC
LNOPTS = -fPIC -shared
dependency_libs = -L../hardware_access -lHIL
targets = libMSP430mspgcc.so libMSP430mspgcc.a
@@ -25,11 +26,11 @@
all: ${targets}
libMSP430mspgcc.so: $(objects)
- gcc ${LNOPTS} $(objects) ${dependency_libs} -o $@
+ $(CC) ${LNOPTS} $(objects) ${dependency_libs} -o $@
#Windows library (DLL)
MSP430mspgcc.dll: $(objects) $(isforce)
- gcc ${LNOPTS} $(objects) ${dependency_libs} -o $@
+ $(CC) ${LNOPTS} $(objects) ${dependency_libs} -o $@
#Import-library for Windows. Used to link against the DLL.
ifdef WINDIR
@@ -59,4 +60,4 @@
#build the file that contains the dependencies. no deps in this rule.
#if there were deps it would be rebuilt every chnage, which is unneded:
dependencies.in:
- gcc -MM ${CFLAGS} MSP430mspgcc.c JTAGfunc.c funclets.c >$@
+ $(CC) -MM ${CFLAGS} MSP430mspgcc.c JTAGfunc.c funclets.c >$@
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl