drivers/can_peak_win32/Makefile.in
changeset 329 7717252e3ed9
parent 191 1e6e3d261b8f
child 374 b74f7ec412fc
equal deleted inserted replaced
328:474aa35daa95 329:7717252e3ed9
    20 # License along with this library; if not, write to the Free Software
    20 # License along with this library; if not, write to the Free Software
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    22 # 
    22 # 
    23 
    23 
    24 CC = SUB_CC
    24 CC = SUB_CC
       
    25 CXX = SUB_CXX
       
    26 LD = SUB_LD
    25 OPT_CFLAGS = -O2
    27 OPT_CFLAGS = -O2
    26 CFLAGS = SUB_OPT_CFLAGS
    28 CFLAGS = SUB_OPT_CFLAGS
    27 PROG_CFLAGS = SUB_PROG_CFLAGS
    29 PROG_CFLAGS = SUB_PROG_CFLAGS
    28 PREFIX = SUB_PREFIX
    30 PREFIX = SUB_PREFIX
    29 TARGET = SUB_TARGET
    31 TARGET = SUB_TARGET
    51 
    53 
    52 %o: %c
    54 %o: %c
    53 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
    55 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
    54 
    56 
    55 cyg$(CAN_DRIVER).dll: $(OBJS)
    57 cyg$(CAN_DRIVER).dll: $(OBJS)
    56 	$(CC) -shared -o $@ \
    58 	$(LD) $(PROG_CFLAGS) -shared -o $@ \
    57 	-Wl,--export-all-symbols \
    59 	-Wl,--export-all-symbols \
    58 	-Wl,--enable-auto-import \
    60 	-Wl,--enable-auto-import \
    59 	-Wl,--whole-archive $< \
    61 	-Wl,--whole-archive $< \
    60 	-Wl,--no-whole-archive $(CAN_DLL_CFLAGS) \
    62 	-Wl,--no-whole-archive $(CAN_DLL_CFLAGS) \
    61 	-Wl,--exclude-libs,ALL
    63 	-Wl,--exclude-libs,ALL