blob: 75b37db051ad6b251c5fe51d68c225d9825d523a (
plain) (
tree)
|
|
.POSIX:
CONFIGFILE = config.mk
include $(CONFIGFILE)
OBJ =\
cg-base.o\
radharc.o
HDR =\
cg-base.h
all: radharc
$(OBJ): $(@:.o=.c) $(HDR)
.c.o:
$(CC) -c -o $@ $< $(CPPFLAGS) $(CFLAGS)
radharc: $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
install: radharc
mkdir -p -- "$(DESTDIR)$(PREFIX)/bin"
mkdir -p -- "$(DESTDIR)$(MANPREFIX)/man1"
cp -- radharc "$(DESTDIR)$(PREFIX)/bin/"
cp -- radharc.1 "$(DESTDIR)$(MANPREFIX)/man1/"
uninstall:
-rm -f -- "$(DESTDIR)$(PREFIX)/bin/radharc"
-rm -f -- "$(DESTDIR)$(MANPREFIX)/man1/radharc.1"
clean:
-rm -f -- radharc *.o
.SUFFIXES:
.SUFFIXES: .c .o
.PHONY: all check install uninstall clean
|