1 # change the following line to install to a different prefix
4 src = $(wildcard src/*.c)
12 CFLAGS = -pedantic -Wall -std=gnu99 -DPREFIX=\"$(PREFIX)\" $(dbg)
15 $(CC) -o $@ $(obj) $(LDFLAGS)
20 @$(CPP) $(CFLAGS) $< -MM -MT $(@:.d=.o) >$@
24 rm -f $(obj) $(bin) $(dep)
28 mkdir -p $(PREFIX)/bin $(PREFIX)/share/dtms
29 cp $(bin) $(PREFIX)/bin/$(bin)
30 chown root $(PREFIX)/bin/$(bin)
31 chmod +s $(PREFIX)/bin/$(bin)
32 cp data/dtms.mp3 $(PREFIX)/share/dtms/dtms.mp3
36 rm -f $(PREFIX)/bin/$(bin)
37 rm -f $(PREFIX)/share/dtms/dtms.mp3
38 rmdir $(PREFIX)/share/dtms