-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
74 lines (48 loc) · 2.28 KB
/
Makefile
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
# Copyright (c) 2008-2019 Klaus Michael Indlekofer. All rights reserved.
#
#
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
VERSION = 3.6.2
CFLAGS += -Wall -Wextra -O2
ifdef LINUX
CFLAGS += -D_FILE_OFFSET_BITS=64
endif
all: akaiutil
install:
$(INSTALL_PROGRAM) akaiutil $(PREFIX)/bin/
clean:
rm -f akaiutil akaiutil.exe *.o
back:
mkdir -p akaiutil-$(VERSION);\
cp -p Makefile README.txt gpl*.txt *.c *.h *.vcproj *.sln *.dsw *.dsp akaiutil-$(VERSION);\
tar -clvpzf akaiutil-$(VERSION).tar.gz akaiutil-$(VERSION)
akaiutil: akaiutil_main.o akaiutil_tar.o akaiutil_file.o akaiutil_take.o akaiutil_wav.o akaiutil.o akaiutil_io.o
$(CC) $(CFLAGS) -o $@ akaiutil_main.o akaiutil_tar.o akaiutil_file.o akaiutil_take.o akaiutil_wav.o akaiutil.o akaiutil_io.o -lm
akaiutil_main.o: akaiutil_main.c akaiutil.h akaiutil_io.h akaiutil_tar.h akaiutil_file.h akaiutil_take.h
$(CC) $(CFLAGS) -c akaiutil_main.c
akaiutil_tar.o: akaiutil_tar.c akaiutil_tar.h akaiutil_file.h akaiutil_take.h akaiutil.h akaiutil_io.h
$(CC) $(CFLAGS) -c akaiutil_tar.c
akaiutil_file.o: akaiutil_file.c akaiutil_file.h akaiutil_wav.h akaiutil.h akaiutil_io.h
$(CC) $(CFLAGS) -c akaiutil_file.c
akaiutil_take.o: akaiutil_take.c akaiutil_take.h akaiutil_wav.h akaiutil.h akaiutil_io.h
$(CC) $(CFLAGS) -c akaiutil_take.c
akaiutil_wav.o: akaiutil_wav.c akaiutil_wav.h akaiutil_io.h
$(CC) $(CFLAGS) -c akaiutil_wav.c
akaiutil.o: akaiutil.c akaiutil.h akaiutil_io.h akaiutil_file.h
$(CC) $(CFLAGS) -c akaiutil.c
akaiutil_io.o: akaiutil_io.c akaiutil_io.h
$(CC) $(CFLAGS) -c akaiutil_io.c
# EOF