Initial import of xbps with code as August '09.
--HG-- extra : convert_revision : juan%40xbps-20090817170720-amxxac4a2e8bza1j
This commit is contained in:
22
prog.mk
Normal file
22
prog.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
include $(TOPDIR)/vars.mk
|
||||
|
||||
OBJS ?= main.o
|
||||
|
||||
all: $(BIN)
|
||||
.PHONY: all
|
||||
|
||||
$(BIN): $(OBJS)
|
||||
$(CC) $(LDFLAGS) $^ -o $@
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-bins clean-objs
|
||||
|
||||
clean-bins:
|
||||
-rm -f $(BIN)
|
||||
|
||||
clean-objs:
|
||||
-rm -f $(OBJS)
|
||||
|
||||
install: $(BIN)
|
||||
install -d $(SBINDIR)
|
||||
install $(INSTALL_STRIPPED) -m 755 $(BIN) $(SBINDIR)
|
Reference in New Issue
Block a user