libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

so.mk (570B)


      1 SOPTARG = $(ROOT)/lib/$(TARG)
      2 SO = $(SOPTARG).$(SOEXT)
      3 SONAME = $(TARG).$(SOEXT)
      4 OFILES_PIC = $(OBJ:=.o_pic)
      5 
      6 all: $(HFILES) $(SO)
      7 
      8 install: $(SOPTARG).install
      9 uninstall: $(SOPTARG).uninstall
     10 clean: soclean
     11 depend: $(OBJ:=.depend)
     12 
     13 soclean:
     14 	for i in $(SO) $(OFILES_PIC); do \
     15 		[ -e $$i ] && \
     16 		echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
     17 		rm -f $$i; \
     18 	done 2>/dev/null || true
     19 
     20 printsoinstall:
     21 	echo 'Install directories:'
     22 	echo '	Lib: $(LIBDIR)'
     23 
     24 printinstall: printsoinstall
     25 
     26 $(SO): $(OFILES_PIC)
     27 	mkdir $(ROOT)/lib 2>/dev/null || true
     28 	$(LINKSO) $@ $(OFILES_PIC)
     29