forked from yaychris/dvorak7min
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 923 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
INSTALL = /usr/local/games/bin
# Uncomment these lines if you want to change the defaults to something else
#PRETTINESS = -DNOT_SO_PRETTY
#NASTINESS = -DNASTY_AS_USUAL
#BEEPS = -DBEEPS_ARENT_IRRITATING
#FLASHES = -DFLASHES_ARENT_IRRITATING
#COLORS = -DNO_COLORS_PLEASE
#PROGRAMMER_DVORAK = -DPROGRAMMER_DVORAK
# Max length of imported texts. Set it to 0 or comment it if you don't want
# a limit
LIMIT_LENGTH = -DLIMIT_LENGTH=1024
### That's all ###
#CC = gcc
PROF = -g0 -O2
CFLAGS = $(PROF) -Wall \
$(PRETTINESS) $(NASTINESS) $(BEEPS) $(FLASHES) $(COLORS) \
$(LIMIT_LENGTH) $(PROGRAMMER_DVORAK)
LDFLAGS = $(PROF)
LIBS = -lncurses
OBJECTS = dvorak7min.o lessons.o
HEADERS = lessons.h
TARGET = dvorak7min
dvorak7min: $(OBJECTS)
$(CC) $(LDFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
all: dvorak7min
clean:
rm -f $(OBJECTS) $(TARGET)
install:
install -d $(INSTALL)
install -s dvorak7min $(INSTALL)