mirror of
https://github.com/0intro/wmii
synced 2024-11-29 09:03:25 +03:00
30 lines
571 B
Makefile
30 lines
571 B
Makefile
SOPTARG = $(ROOT)/lib/$(TARG)
|
|
SO = $(SOPTARG).$(SOEXT)
|
|
SONAME = $(TARG).$(SOEXT)
|
|
OFILES_PIC = ${OBJ:=.o_pic}
|
|
|
|
all: $(HFILES) $(SO)
|
|
|
|
install: $(SOPTARG).install
|
|
uninstall: $(SOPTARG).uninstall
|
|
clean: soclean
|
|
depend: ${OBJ:=.depend}
|
|
|
|
soclean:
|
|
for i in $(SO) $(OFILES_PIC); do \
|
|
[ -e $$i ] && \
|
|
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
|
|
rm -f $$i; \
|
|
done 2>/dev/null || true
|
|
|
|
printsoinstall:
|
|
echo 'Install directories:'
|
|
echo ' Lib: $(LIBDIR)'
|
|
|
|
printinstall: printsoinstall
|
|
|
|
$(SO): $(OFILES_PIC)
|
|
mkdir $(ROOT)/lib 2>/dev/null || true
|
|
$(LINKSO) $@ $(OFILES_PIC)
|
|
|