drivers/generic/Makefile.in
changeset 24 a9543d2ccd56
parent 15 e930a0e817de
child 40 ddeeb217ed71
equal deleted inserted replaced
23:6a5cdca4de01 24:a9543d2ccd56
    34 CAN_DRIVER = SUB_CAN_DRIVER
    34 CAN_DRIVER = SUB_CAN_DRIVER
    35 TIMERS_DRIVER = SUB_TIMERS_DRIVER
    35 TIMERS_DRIVER = SUB_TIMERS_DRIVER
    36 LED_DRIVER = SUB_LED_DRIVER
    36 LED_DRIVER = SUB_LED_DRIVER
    37 NVRAM_DRIVER = SUB_NVRAM_DRIVER
    37 NVRAM_DRIVER = SUB_NVRAM_DRIVER
    38 
    38 
    39 INCLUDES = -I../../include -I../../include/generic
    39 INCLUDES = -I../../include -I../../include/$(SUB_TARGET)
    40 
    40 
    41 OBJS = 
    41 OBJS = 
    42 
    42 
    43 # add timers driver if any
    43 # add timers driver if any
    44 ifneq ($(TIMERS_DRIVER),timers_)
    44 ifneq ($(TIMERS_DRIVER),timers_)
    72 #	$(MAKE) -C ../$(TIMERS_DRIVER) driver
    72 #	$(MAKE) -C ../$(TIMERS_DRIVER) driver
    73 
    73 
    74 #../$(CAN_DRIVER)/$(CAN_DRIVER).o:
    74 #../$(CAN_DRIVER)/$(CAN_DRIVER).o:
    75 #	$(MAKE) -C ../$(CAN_DRIVER) driver
    75 #	$(MAKE) -C ../$(CAN_DRIVER) driver
    76 
    76 
    77 libcanfestival_generic.a: $(OBJS)
    77 libcanfestival_$(TARGET).a: $(OBJS)
    78 	@echo Building [libcanfestival_generic.a]
    78 	@echo Building [libcanfestival_$(TARGET).a]
    79 	ar rc $@ $(OBJS)
    79 	ar rc $@ $(OBJS)
    80 	ranlib $@
    80 	ranlib $@
    81 
    81 
    82 install: libcanfestival_generic.a
    82 install: libcanfestival_$(TARGET).a
    83 	mkdir -p $(PREFIX)/lib/
    83 	mkdir -p $(PREFIX)/lib/
    84 	mkdir -p $(PREFIX)/include/canfestival
    84 	mkdir -p $(PREFIX)/include/canfestival
    85 	cp libcanfestival_generic.a $(PREFIX)/lib/
    85 	cp libcanfestival_$(TARGET).a $(PREFIX)/lib/
    86 	cp $(SRC_HFILES) $(PREFIX)/include/canfestival
    86 	cp $(SRC_HFILES) $(PREFIX)/include/canfestival
    87 
    87 
    88 uninstall:
    88 uninstall:
    89 	rm -f $(PREFIX)/lib/libcanfestival_generic.a
    89 	rm -f $(PREFIX)/lib/libcanfestival_$(TARGET).a
    90 	rm -f $(TARGET_HFILES)
    90 	rm -f $(TARGET_HFILES)
    91 
    91 
    92 clean:
    92 clean:
    93 	-\rm libcanfestival_generic.a
    93 	-\rm libcanfestival_$(TARGET).a
    94 
    94 
    95 mrproper: clean
    95 mrproper: clean
    96 
    96 
    97 
    97