More build fixes

This commit is contained in:
pancake 2012-10-11 13:09:33 +02:00
parent 710c91ff18
commit 9440560f92
2 changed files with 8 additions and 15 deletions

View File

@ -6,23 +6,16 @@ CFLAGS+=-DCORELIB -Iarch/include -Iarch -I../../shlr
include $(TOP)/libr/config.mk
foo:
@for a in pre ${LIBSO} ${LIBAR} plugins ; do ${MAKE} $$a ; done
.PHONY: all plugins
all: plugins
plugins: ${LIBSO} ${LIBAR}
@cd d && ${MAKE}
@cd p && ${MAKE} all
include ${STATIC_ASM_PLUGINS}
STATIC_OBJS=$(subst ..,p/..,$(subst asm_,p/asm_,$(STATIC_OBJ)))
OBJS=${STATIC_OBJS} asm.o code.o
pre:
@if [ ! -e libr_asm.${EXT_SO} ]; then if [ ! -e libr_asm.${EXT_AR} ]; then rm -f ${STATIC_OBJS} ; fi ; fi
re:
rm -f asm.o libr_asm.so
${MAKE}
sudo ${MAKE} install
plugins:
@cd d && ${MAKE}
@cd p && ${MAKE} all
include $(TOP)/libr/rules.mk

View File

@ -73,7 +73,7 @@ pkgcfg:
@echo 'Cflags: -I$${includedir}/libr' >> ../../pkgcfg/${NAME}.pc.acr
clean:: ${EXTRA_CLEAN}
-rm -f *.${EXT_EXE} *.${EXT_SO} *.${EXT_AR} *.d
-rm -f *.${EXT_EXE} *.${EXT_SO} *.${EXT_AR} *.d */*.d */*/*.d */*/*/*.d
-rm -f ${LIBSO} ${LIBAR} ${OBJS} ${BIN} *.exe a.out
-@if [ -e p/Makefile ]; then (cd p && ${MAKE} clean) ; fi
@true