Initial commit

This commit is contained in:
phillbush
2020-05-15 19:02:23 -03:00
commit a77326901f
5 changed files with 651 additions and 0 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
include config.mk
SRCS = ${PROG}.c
OBJS = ${SRCS:.c=.o}
all: ${PROG}
${PROG}: ${OBJS}
${CC} -o $@ ${OBJS} ${LDFLAGS}
${OBJS}: config.h
config.h: config.def.h
cp config.def.h $@
.c.o:
${CC} ${CFLAGS} -c $<
clean:
-rm ${OBJS} ${PROG}
install: all
install -d ${DESTDIR}${PREFIX}/bin/
install -m 755 ${PROG} ${DESTDIR}${PREFIX}/bin/
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/${PROG}
.PHONY: all clean install uninstall