if [ "PCAN_HEADER" = "" -o "PCAN_LIB" = "" ]; then
echo "!!! ERROR !!! Please set PCAN_LIB PCAN_HEADER [PCAN_INCLUDE] to appropriate paths ! "
fi
- SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ \'$PCAN_LIB\'
+ SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ -liberty\ \'$PCAN_LIB\'
if [ "$PCAN_INCLUDE" != "" ]; then
SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ -I$PCAN_INCLUDE
fi
rm -f $(TARGET_HFILES)
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
rm -f $(TARGET_HFILES)
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
rm -f $(TARGET_HFILES)
clean:
- -\rm $(OBJS)
+ rm $(OBJS)
mrproper: clean
rm -f ../../examples/ecos_lpc2138_sja1000/lib/driver
clean:
- -\rm -f $(OBJS) build_baudrate baudrate_table.h
+ rm -f $(OBJS) build_baudrate baudrate_table.h
mrproper: clean
- -\rm ../../lib/ecos_lpc2138_sja1000/libcandriver.a
+ rm -f ../../lib/ecos_lpc2138_sja1000/libcandriver.a
rm -f $(TARGET_HFILES)
clean:
- -\rm libcanfestival_$(TARGET).a
+ rm -f libcanfestival_$(TARGET).a
mrproper: clean
rm -f ../../lib/hc12/libcandriver.a
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
- -\rm ../../lib/hc12/libcandriver.a
+ rm -f ../../lib/hc12/libcandriver.a
uninstall:
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
rm -f $(TARGET_HFILES)
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
rm -f $(TARGET_HFILES)
clean:
- -\rm $(OBJS)
+ rm -f $(OBJS)
mrproper: clean
rm -f $(TARGET_HFILES)
clean:
- -\rm libcanfestival_$(TARGET).a
+ rm -f libcanfestival_$(TARGET).a
mrproper: clean
$(BINUTILS_PREFIX)size $(PGR).elf
clean:
- -\rm $(MASTER_OBJS)
+ rm -f $(MASTER_OBJS)
mrproper: clean
- -\rm $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s
+ rm -f $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s
$(BINUTILS_PREFIX)size $(PGR).elf
clean:
- -\rm $(SLAVE_OBJS)
+ rm -f $(SLAVE_OBJS)
mrproper: clean
- -\rm $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s
+ rm -f $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s
TestMasterSlave: $(OBJS)
- $(CC) $(CFLAGS) $(PROG_CFLAGS) $(EXE_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ $(OBJS)
+ $(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ $(OBJS) $(EXE_CFLAGS)
%o: %c
$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
// Open CAN devices
if(SlaveBoard.baudrate)
if((SlaveCanHandle = canOpen(&SlaveBoard))==NULL) goto fail_slave;
-
+
if(MasterBoard.baudrate)
if((MasterCanHandle = canOpen(&MasterBoard))==NULL) goto fail_master;
$(BINUTILS_PREFIX)size $(PGR).elf
clean:
- -\rm $(SYNC_OBJS)
+ rm -f $(SYNC_OBJS)
mrproper: clean
- -\rm $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s
+ rm -f $(PGR).elf $(PGR).s19 $(PGR).b $(PGR).s