-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.os3
101 lines (80 loc) · 3.13 KB
/
Makefile.os3
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
99
100
101
#
# AmiSoundED - Sound Editor
# Copyright (C) 2008-2009 Fredrik Wikstrom <fredrik@a500.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
CC = vc +aos68k -c99
RM = delete
CP = copy
# Change these as required
OPTIMIZE = -O3 -speed
DEBUG =
CFLAGS = $(OPTIMIZE) $(DEBUG) -I. -Iinclude -Iplugins/wave/include -Iplugins/au/include
# Flags passed to gcc during linking
LINK = $(OPTIMIZE) $(DEBUG)
# Name of the "thing" to build
TARGET = AmiSoundED
VERSION = 0
# Additional linker libraries
LIBS = -lauto -lraauto -lm
# Source code files used in this project
# Add any additional files to this line
OBJS = locale_support.o main.o project_main.o project_gui.o soundeditor_gc.o \
soundeditor_samples.o speedbar_support.o loadsnd.o loadsnd_dt.o \
playsnd.o clipboard.o iffparse_clipboard.o plugins.o aiff_support.o \
requesters.o prefs.o ext_window_class.o savesnd.o recordsnd.o \
amiupdate.o checkaiss.o donotifyattrs.o interfaces/sounded.o \
progressbar.o volumeadjust.o resample.o record2file.o
PLUGINS = \
AmiSoundED-os3/Plugins/8SVX \
AmiSoundED-os3/Plugins/AIFF \
AmiSoundED-os3/Plugins/WAVE \
AmiSoundED-os3/Plugins/AU
# -------------------------------------------------------------
# Nothing should need changing below this line
# Rules for building
all: AmiSoundED-os3/$(TARGET)
AmiSoundED-os3/$(TARGET): $(OBJS)
$(CC) $(LINK) -o $@ $^ $(LIBS)
C:Protect $@ +e
main.o requesters.o interfaces/sounded.o: $(TARGET)_rev.h
locale_support.o: include/locale.h
include/locale.h: $(TARGET).cd
catcomp $< CFILE $@
AmiSoundED-os3/Plugins/8SVX: plugins/8svx/8svx.o iffparse_support.o
$(CC) $(LINK) -nostdlib -o $@ $^ -lvc
AmiSoundED-os3/Plugins/AIFF: plugins/aiff/aiff.o aiff_support.o iffparse_support.o
$(CC) $(LINK) -nostdlib -o $@ $^ -lvc
AmiSoundED-os3/Plugins/WAVE: plugins/wave/wave.o plugins/wave/wave_codecs.o plugins/wave/wave_pcm.o \
plugins/wave/wave_ima_adpcm.o plugins/wave/wave_ms_adpcm.o plugins/wave/wave_ieee_float.o \
plugins/wave/wave_alaw.o plugins/wave/wave_gsm610.o bitpack.o bitpack_lsb.o
$(CC) $(LINK) -nostdlib -o $@ $^ -Lplugins/wave/gsm -lgsm
AmiSoundED-os3/Plugins/AU: plugins/au/au.o plugins/au/au_codecs.o plugins/au/au_pcm.o \
plugins/au/au_alaw.o plugins/au/au_float.o
$(CC) $(LINK) -nostdlib -o $@ $^ -lvc -lm
.PHONY: clean
clean:
$(RM) AmiSoundED-os3/$(TARGET) $(OBJS)
.PHONY: distclean
distclean:
$(RM) $(OBJS)
.PHONY: dist
dist: all
$(CP) $(TARGET).cd AmiSoundED-os3/Catalogs
lha u -r amisounded-os3.lha AmiSoundED-os3
.PHONY: revision
revision:
bumprev $(VERSION) $(TARGET)