mirror of
https://github.com/0intro/wmii
synced 2024-11-22 05:42:05 +03:00
27 lines
440 B
Makefile
27 lines
440 B
Makefile
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); \
|
|
rm -f $$i; \
|
|
done 2>/dev/null || true
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
$(PROG): $(OFILES) $(LIB)
|
|
$(LINK) $@ $(OFILES) $(LIB)
|
|
|