File: Makefile

package info (click to toggle)
console-braille 1.2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 232 kB
  • ctags: 125
  • sloc: ansic: 955; pascal: 100; makefile: 51
file content (25 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (3)
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
BRLS:=$(wildcard brl-*.c)
TARGETS:=$(BRLS:.c=.psf)
PROGS:=$(BRLS:.c=)

UNAME=$(shell uname)

all: $(TARGETS) brl.uni

ifeq ($(UNAME),Linux)
all: setbrlkeys
endif

brl-%: brl-%.o psf.o
	$(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS)

.INTERMEDIATE: $(PROGS) uni

$(TARGETS): %.psf: %
	./$< > $@

brl.uni: uni
	./$< 0 > $@

clean:
	rm -f $(PROGS) psf.o $(BRLS:.c=.o) $(TARGETS) brl.uni uni setbrlkeys