-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
26 lines (20 loc) · 857 Bytes
/
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
#CC=arm-linux-gnueabihf-gcc
CC=arm-none-linux-gnueabihf-gcc
#STRIP=arm-linux-gnueabihf-strip
STRIP=arm-none-linux-gnueabihf-strip
CCFLAGS=-Ialsa/include -Icurl/include -Ofast -mcpu=cortex-a9 -mtune=cortex-a9 -mfpu=neon -mfloat-abi=hard -ftree-vectorize -funsafe-math-optimizations
LDFLAGS=-Lalsa/lib -Lcurl/lib -lasound -lm -pthread -lcurl -lssh2 -lssl -lcrypto -lz
SRC=main.c modem.c serial.c serial2.c misc.c udpsock.c tcpsock.c alsa.c ini.c directory.c modem_snd.c openai.c
SRC_UTL=mlinkutil.c misc.c serial2.c tcpsock.c
all :
$(CC) $(LDFLAGS) $(SRC) $(CCFLAGS) -o midilink
$(STRIP) midilink
$(CC) $(CCFLAGS) $(SRC_UTL) -o mlinkutil
$(STRIP) mlinkutil
x86 :
gcc $(LDFLAGS)$(SRC) -o midilink_x86
strip midilink_x86
gcc $(SRC_UTL) -o mlinkutil_x86
strip mlinkutil_x86
clean:
rm -f midilink mlinkutil mlinkutil_x86 *~ *.orig DEADJOE