aboutsummaryrefslogtreecommitdiffstats
path: root/audio/playmidi/files/patch-ab
blob: c7cfccbd7013398d1db7cc3321eb6f2a09255f79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
*** Makefile.orig   Fri Nov 25 22:24:59 1994
--- Makefile    Mon Feb 27 23:08:42 1995
***************
*** 9,59 ****
  # to prevent segmentation faults 'cause of a bug, otherwise use 2.5.8
  #CFLAGS = -g
  #LDFLAGS = -g
! CFLAGS = -O2 -m486 -Wall
! LDFLAGS = -s
! INSTALLDIR = /usr/local/bin
  OBJECTS = playmidi.o midifile.o playevents.o patchload.o emumidi.o
  
  all: playmidi resetmidi
  
! playmidi: .depend $(OBJECTS)
    $(CC) $(LDFLAGS) -o playmidi $(OBJECTS)
  
! resetmidi: .depend resetmidi.o
!   $(CC) -N $(LDFLAGS) -o resetmidi resetmidi.o
! 
! scope: .depend scope.o
!   $(CC) -N $(LDFLAGS) -o scope scope.o -lvga
  
  $(INSTALLDIR)/playmidi: playmidi
!   cp playmidi $(INSTALLDIR)
  
  $(INSTALLDIR)/resetmidi: resetmidi
!   cp resetmidi $(INSTALLDIR)
! 
! $(INSTALLDIR)/scope: scope
!   cp scope $(INSTALLDIR)
  
! install: $(INSTALLDIR)/playmidi $(INSTALLDIR)/resetmidi #$(INSTALLDIR)/scope
  
  clean:
!   rm -f *.o *~ *.bak playmidi resetmidi scope a.out
  
- ifeq (.depend, $(wildcard .depend))
- .depend depend dep:
-   for i in *.c; do $(CPP) -M $$i; done >.depend
- 
- include .depend
- else
- depend dep:
-   for i in *.c; do $(CPP) -M $$i; done >.depend
- 
- .depend:
-   @echo
-   @echo "Bad or missing .depend running 'make depend'"
-   @echo
-   $(MAKE) depend
-   @echo
-   @echo "Successful.  Now make again (ignore following error)"
-   @exit 1
- endif
--- 9,50 ----
  # to prevent segmentation faults 'cause of a bug, otherwise use 2.5.8
  #CFLAGS = -g
  #LDFLAGS = -g
! PREFIX = /usr/local
! CFLAGS += -g -Wall -DPREFIX=\"$(PREFIX)\"
! #LDFLAGS = -s
! INSTALLDIR = $(PREFIX)/bin
  OBJECTS = playmidi.o midifile.o playevents.o patchload.o emumidi.o
+ #INSTALL_BIN = cp
+ #INSTALL_DAT = cp
+ INSTALL_BIN = $(INSTALL) -s $(COPY) -o $(BINOWN) -g $(BINGRP) -m 755
+ INSTALL_DAT = $(INSTALL) -c -o $(BINOWN) -g $(BINGRP) -m 644
  
  all: playmidi resetmidi
  
! playmidi: $(OBJECTS)
    $(CC) $(LDFLAGS) -o playmidi $(OBJECTS)
  
! resetmidi: resetmidi.o
!   $(CC) $(LDFLAGS) -o resetmidi resetmidi.o
  
  $(INSTALLDIR)/playmidi: playmidi
!   $(INSTALL_BIN) playmidi $(INSTALLDIR)
  
  $(INSTALLDIR)/resetmidi: resetmidi
!   $(INSTALL_BIN) resetmidi $(INSTALLDIR)
  
! dirs:
!   -@mkdir -p $(INSTALLDIR)
!   -@mkdir -p $(PREFIX)/lib/midi
!   -@mkdir -p $(PREFIX)/lib/gus
!   -@mkdir -p $(PREFIX)/man/man1
!   -@mkdir -p $(PREFIX)/man/man3
! 
! install: dirs $(INSTALLDIR)/playmidi $(INSTALLDIR)/resetmidi
!   $(INSTALL_DAT) std.o3 drums.o3 std.sb drums.sb $(PREFIX)/lib/midi
!   $(INSTALL_DAT) playmidi.1 $(PREFIX)/man/man1
!   $(INSTALL_DAT) midifile.3 $(PREFIX)/man/man3
  
  clean:
!   rm -f *.o *~ *.bak playmidi resetmidi a.out