mirror of
https://github.com/freedoom/freedoom.git
synced 2025-09-06 19:25:46 -04:00
Move C code into subdirectory as it will soon be only of historical interest. Add extra program to dump SBI instrument patches, switch to using OPL2 instruments, and ignore "null" instruments (all-zero).
19 lines
338 B
Makefile
19 lines
338 B
Makefile
|
|
CFLAGS = -Wall
|
|
OBJS = oplinstrs.o instrnames.o
|
|
|
|
genmidi.lmp : genmidi-gen
|
|
./genmidi-gen $@
|
|
|
|
genmidi-gen : $(OBJS) genmidi-gen.o
|
|
$(CC) $(LDFLAGS) $(OBJS) genmidi-gen.o -o $@
|
|
|
|
dump-sbi : $(OBJS) dump-sbi.o
|
|
$(CC) $(LDFLAGS) $(OBJS) dump-sbi.o -o $@
|
|
|
|
%.o : %.c
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) genmidi-gen genmidi.lmp
|
|
|