PREFIX = /usr/local DC = ldc2 CFLAGS = -Oz #CFLAGS = -O0 -g -d-debug -wi LDFLAGS = -L-lcurl OBJS = mal.o all: mal mal: ${OBJS} ${DC} ${LDFLAGS} -of=$@ ${OBJS} mal.o: mal.d ${DC} ${CFLAGS} -c mal.d clean: rm -f mal ${OBJS} install: mkdir -p ${DESTDIR}${PREFIX}/bin chmod +x mal cp -f mal ${DESTDIR}${PREFIX}/bin/mal .PHONY: all clean install