2009-09-03 22:20:44 +04:00
|
|
|
PROG = $(TARG).out
|
2010-05-23 04:55:16 +04:00
|
|
|
OFILES = $(OBJ:=.o)
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
all: $(PROG)
|
2007-03-26 08:48:00 +04:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
install: $(TARG).install
|
|
|
|
uninstall: $(TARG).uninstall
|
2007-03-26 08:48:00 +04:00
|
|
|
clean: oneclean
|
2010-05-23 04:55:16 +04:00
|
|
|
depend: $(OBJ:=.depend)
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
printinstall:
|
|
|
|
echo 'Install directories:'
|
2008-01-18 01:50:35 +03:00
|
|
|
echo ' Bin: $(BIN)'
|
2007-03-26 08:48:00 +04:00
|
|
|
|
|
|
|
oneclean:
|
2008-01-18 01:50:35 +03:00
|
|
|
for i in $(PROG) $(OFILES); do \
|
2008-01-29 01:58:23 +03:00
|
|
|
[ -e $$i ] && \
|
2008-01-27 05:13:42 +03:00
|
|
|
echo CLEAN $$($(CLEANNAME) $(BASE)$$i); \
|
2007-04-19 22:53:07 +04:00
|
|
|
rm -f $$i; \
|
2007-03-26 08:48:00 +04:00
|
|
|
done 2>/dev/null || true
|
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
$(OFILES): $(HFILES)
|
2007-04-14 11:03:06 +04:00
|
|
|
|
2008-01-18 01:50:35 +03:00
|
|
|
$(PROG): $(OFILES) $(LIB)
|
|
|
|
$(LINK) $@ $(OFILES) $(LIB)
|
2007-03-26 08:48:00 +04:00
|
|
|
|