-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile.mac
More file actions
executable file
·88 lines (72 loc) · 2.48 KB
/
Copy pathmakefile.mac
File metadata and controls
executable file
·88 lines (72 loc) · 2.48 KB
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
# Makefile for sysres on Mac [8-Jun-2023]
CC = gcc
CFLAGS = -O2 -Wall -DMAC -Dlinux -DANSI_C -I/usr/local/include
BIN=$(ROOT)/usr/local/bin
LFLAGS=-framework CoreServices -framework CoreAudio \
-framework AudioUnit -framework AudioToolbox \
-L/usr/local/lib
OFILES=sysres.o gui.o display.o help.o gr_disp.o gr_con.o gr_mac.o \
print.o rwfile.o calibr.o kb.o wrtnfo.o \
fft.o simp.o dp.o average.o clip.o rwcfg.o expfit.o eval.o
LIBS = -lsio -lfft -framework Cocoa -framework CoreGraphics -lm
DIST_FILES=sysres readme.txt msnd.cfg pincfg.txt
all: sysres
sysres : $(OFILES)
$(CC) -o sysres $(LFLAGS) $(OFILES) $(LIBS)
install: sysres
mkdir -p $(BIN)
install sysres $(BIN)
clean:
rm -f *.bak *.o *.obj *.out *.pdb *.log *.exe *.bin sysres
rm -f *.res *.dll *.lib *.exp *~
version:
perl version.pl
zipdem:
rm -rf sysres.zip
zip sysres readme.txt sysres.exe
zip sysres caltone.lst tp.lst tstcal.lst
zipsrc: version
zip sysressc configure configure.bat
zip sysressc makefile.djc makefile.lnx makefile.mac
zip sysressc *.h *.c *.asm *.txt *.lst
zip sysressc dpef.lst dpstim.lst test.lst dpenv.m
zip sysressc sysres.rc sysres.ico
zip sysressc VS9/*.sln VS9/*.vcproj VS9/readme.txt
zip sysressc sysres.iss sysres.spec version.pl
rpm: tar
rm -rf /tmp/sysres
mkdir -p /tmp/sysres
unzip -d /tmp/sysres -o sysressc
tar -czf sysressc.tgz -C /tmp sysres
mv -f sysressc.tgz /usr/src/RPM/SOURCES
rpm -ba sysres.spec
cp -f /usr/src/RPM/{RPMS/i?86,SRPMS}/SysRes*.rpm ../dist
rm -f /usr/src/RPM/{RPMS/i?86,SRPMS}/SysRes*.rpm
dist: rpm
pkgexe: sysres
rm -rf build_pkg sysres-macos.pkg
mkdir -p build_pkg/usr/local/bin
mkdir -p build_pkg/usr/local/share/sysres
cp sysres build_pkg/usr/local/bin/
cp README.md UserGuide.md *.lst build_pkg/usr/local/share/sysres/
pkgbuild --root build_pkg --identifier org.btnrh.sysres --version 3.00 sysres-macos.pkg
rm -rf build_pkg
deploy: pkgexe
curl -T sysres-macos.pkg "ftp://audres_deploy%40bonkachen.com:BTNRH1982%21@bonkachen.com/downloads/sysres-macos.pkg"
# (makedep will replace everything after this line)
average.o: sysres.h display.h sio.h
calibr.o: display.h sysres.h
display.o: display.h
dp.o: display.h
dsp1.o: tstm.h
dsp2.o: tstp.h
gui.o: display.h version.h sysres.h sio.h
help.o: version.h
rwcfg.o: display.h version.h sysres.h sio.h
rwfile.o: display.h uni.h
sio.o: sio.h
sysres.o: display.h version.h sysres.h sio.h uni.h
docs:
pandoc UserGuide.md -o "../../tm/SysRes_UserGuide.docx"
git commit -am "Update User Guide" || true
git push || true