-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathmakefile
More file actions
48 lines (36 loc) · 1.53 KB
/
Copy pathmakefile
File metadata and controls
48 lines (36 loc) · 1.53 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
#CROSS=i686-w64-mingw32-
CC = $(CROSS)gcc
LINK = $(CROSS)gcc -fopenmp -Wno-unused-function -Wno-unused-result
AR = $(CROSS)ar
CFLAGS = -DFP_TYPE=float -Ofast -g -mtune=native -std=c99 -Wall -fPIC -lm $(CFLAGSEXT)
ARFLAGS = -rv
OUT_DIR = ./build
OBJS = $(OUT_DIR)/ciglet.o $(OUT_DIR)/cJSON.o
LIBS = -lm -Lexternal/liblrhsmm/build -llrhsmm
TARGETS = shiro-mkhsmm shiro-init shiro-rest shiro-align shiro-untie \
shiro-wav2raw shiro-xxcc
default: $(TARGETS)
shiro-mkhsmm: shiro-mkhsmm.c cli-common.h $(OBJS)
$(LINK) shiro-mkhsmm.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-mkhsmm
shiro-init: shiro-init.c cli-common.h $(OBJS)
$(LINK) shiro-init.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-init
shiro-rest: shiro-rest.c cli-common.h $(OBJS)
$(LINK) shiro-rest.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-rest
shiro-align: shiro-align.c cli-common.h $(OBJS)
$(LINK) shiro-align.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-align
shiro-untie: shiro-untie.c cli-common.h $(OBJS)
$(LINK) shiro-untie.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-untie
shiro-wav2raw: shiro-wav2raw.c $(OBJS)
$(LINK) shiro-wav2raw.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-wav2raw
shiro-xxcc: shiro-xxcc.c $(OBJS)
$(LINK) shiro-xxcc.c $(OBJS) $(CFLAGS) $(LIBS) -o shiro-xxcc
$(OUT_DIR)/ciglet.o:
$(CC) $(CFLAGS) -o $(OUT_DIR)/ciglet.o -c external/ciglet/ciglet.c
$(OUT_DIR)/cJSON.o:
$(CC) $(CFLAGS) -o $(OUT_DIR)/cJSON.o -c external/cJSON/cJSON.c
$(OUT_DIR)/%.o : %.c
$(CC) $(CFLAGS) -o $(OUT_DIR)/$*.o -c $*.c
clean:
@echo 'Removing all temporary binaries...'
@rm -f $(OUT_DIR)/*.o $(TARGETS)
@echo Done.