examples/TestMasterSlave/Makefile.in
changeset 91 ed2612282988
parent 40 ddeeb217ed71
child 94 bdf4c86be6b2
equal deleted inserted replaced
90:7df322d86ae1 91:ed2612282988
    48 
    48 
    49 ../../drivers/$(TARGET)/libcanfestival_$(TARGET).a:
    49 ../../drivers/$(TARGET)/libcanfestival_$(TARGET).a:
    50 	$(MAKE) -C ../../drivers/$(TARGET) libcanfestival_$(TARGET).a
    50 	$(MAKE) -C ../../drivers/$(TARGET) libcanfestival_$(TARGET).a
    51 
    51 
    52 
    52 
    53 TestMasterSlave: $(OBJS)
    53 TestMasterSlave: TestSlave.c TestMaster.c $(OBJS)
    54 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ $(OBJS) $(EXE_CFLAGS)
    54 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ $(OBJS) $(EXE_CFLAGS)
       
    55 	
       
    56 TestSlave.c: TestSlave.od
       
    57 	$(MAKE) -C ../../objdictgen gnosis
       
    58 	python ../../objdictgen/objdictgen.py TestSlave.od TestSlave.c
       
    59 	
       
    60 TestMaster.c: TestMaster.od
       
    61 	$(MAKE) -C ../../objdictgen gnosis
       
    62 	python ../../objdictgen/objdictgen.py TestMaster.od TestMaster.c
    55 
    63 
    56 %o: %c
    64 %o: %c
    57 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
    65 	$(CC) $(CFLAGS) $(PROG_CFLAGS) ${PROGDEFINES} $(INCLUDES) -o $@ -c $<
    58 
    66 
    59 clean:
    67 clean:
    60 	-rm $(MASTER_OBJS)
    68 	rm -f $(MASTER_OBJS)
    61 	-rm TestMasterSlave
    69 	rm -f TestMasterSlave
    62 
    70 
    63 mrproper: clean
    71 mrproper: clean
       
    72 	rm -f TestSlave.c
       
    73 	rm -f TestMaster.c
       
    74 	
    64 
    75 
    65 
    76 
    66 
    77