drivers/can_anagate_linux/Makefile
changeset 790 1936110171a2
parent 658 7758d60e9260
equal deleted inserted replaced
789:a82d867e7850 790:1936110171a2
    41 DRIVER = libcanfestival_$(CAN_DRIVER).so
    41 DRIVER = libcanfestival_$(CAN_DRIVER).so
    42 else
    42 else
    43 DRIVER = $(OBJS)
    43 DRIVER = $(OBJS)
    44 endif
    44 endif
    45 
    45 
    46 TARGET_SOFILES = $(PREFIX)/lib/$(DRIVER)
    46 TARGET_SOFILES = $(DESTDIR)$(PREFIX)/lib/$(DRIVER)
    47 
    47 
    48 all: driver
    48 all: driver
    49 
    49 
    50 driver: $(DRIVER)
    50 driver: $(DRIVER)
    51 
    51 
    54 
    54 
    55 libcanfestival_$(CAN_DRIVER).so: $(OBJS)
    55 libcanfestival_$(CAN_DRIVER).so: $(OBJS)
    56 	$(CC) -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so $(CAN_DLL_CFLAGS) -o $@ $<
    56 	$(CC) -shared -Wl,-soname,libcanfestival_$(CAN_DRIVER).so $(CAN_DLL_CFLAGS) -o $@ $<
    57 
    57 
    58 install: libcanfestival_$(CAN_DRIVER).so
    58 install: libcanfestival_$(CAN_DRIVER).so
    59 	mkdir -p $(PREFIX)/lib/
    59 	mkdir -p $(DESTDIR)$(PREFIX)/lib/
    60 	cp $< $(PREFIX)/lib/
    60 	cp $< $(DESTDIR)$(PREFIX)/lib/
    61 		
    61 		
    62 uninstall:
    62 uninstall:
    63 	rm -f $(TARGET_SOFILES)
    63 	rm -f $(TARGET_SOFILES)
    64 
    64 
    65 clean:
    65 clean: