wmii/mk/one.mk

27 lines
440 B
Makefile
Raw Normal View History

2009-09-03 22:20:44 +04:00
PROG = $(TARG).out
OFILES = $(OBJ:=.o)
all: $(PROG)
install: $(TARG).install
uninstall: $(TARG).uninstall
clean: oneclean
depend: $(OBJ:=.depend)
printinstall:
echo 'Install directories:'
echo ' Bin: $(BIN)'
oneclean:
for i in $(PROG) $(OFILES); do \
[ -e $$i ] && \
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
2007-04-19 22:53:07 +04:00
rm -f $$i; \
done 2>/dev/null || true
$(OFILES): $(HFILES)
2007-04-14 11:03:06 +04:00
$(PROG): $(OFILES) $(LIB)
$(LINK) $@ $(OFILES) $(LIB)