toolbox

Check-in [8cfc651746]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:soundmachine: improve Makefile
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8cfc6517467e766af18b1775a724b76d0e5c783cfec7afa4df370bb389411183
User & Date: jef 2020-04-26 12:12:45
Context
2020-04-27
18:36
lib: add useful function in jtbuf & jtstr check-in: 33ccecc090 user: jef tags: trunk
2020-04-26
12:12
soundmachine: improve Makefile check-in: 8cfc651746 user: jef tags: trunk
12:12
radios-check: remove unused headers check-in: bdceb6ce21 user: jef tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/soundmachine/Makefile.

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
OBJS = soundmachine.o

all: $(PROG)

lib:
	make -C ../lib

sounds.h:
	find sounds -name "*.mp3" | sort | xargs -rn1 xxd -i > sounds.h

$(PROG): sounds.h lib $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1







|


|







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
OBJS = soundmachine.o

all: $(PROG)

lib:
	make -C ../lib

sounds_h:
	find sounds -name "*.mp3" | sort | xargs -rn1 xxd -i > sounds.h

$(PROG): sounds_h lib $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LDFLAGS)

install: $(PROG) $(PROG).1
	mkdir -p $(PREFIX)/bin
	cp -f $(PROG) $(PREFIX)/bin
	chmod 0755 $(PREFIX)/bin/$(PROG)
	mkdir -p $(MANPREFIX)/man1