-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile.macos.alt
35 lines (28 loc) · 1020 Bytes
/
makefile.macos.alt
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
CC = gcc
CFLAGS = `/opt/homebrew/bin/pkg-config --cflags gtk+-3.0 gmodule-2.0`
LIBS = `/opt/homebrew/bin/pkg-config --libs gtk+-3.0 gmodule-2.0`
DEBUG = -Wall -g
OBJECTS = speakalator.o callbacks.o serial.o dictionary.o english3.o phoneme.o
all: speakalator
speakalator: $(OBJECTS)
$(CC) $(DEBUG) $(CFLAGS) $(OBJECTS) -o $@ $(LIBS)
speakalator.o: speakalator.c support.h
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
callbacks.o: callbacks.c support.h handles.h
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
serial.o: serial.c serial.h
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
dictionary.o: dictionary.c
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
english3.o: english3.c
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
phoneme.o: phoneme.c
$(CC) $(DEBUG) $(CFLAGS) -c $< -o $@ $(LIBS)
clean:
rm -f *.o speakalator
run:
./speakalator
backup:
tar -cvzf ../speakalator.tgz .
binary:
@cp speakalator ../speakalator-`uname -s|tr '[:upper:]' '[:lower:]'`-`uname -m | tr '[:upper:]' '[:lower:]'`