File: Makefile

package info (click to toggle)
pointerize 0.6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 160 kB
  • ctags: 123
  • sloc: ansic: 1,146; makefile: 121; sh: 3
file content (41 lines) | stat: -rw-r--r-- 656 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/make -f

CFLAGS+=-Wall -g
LIBDIR=../lib

PROGRAMS=hello

all:	$(PROGRAMS)

build:
	make -C ../src all
	make -C ../lib all

# messages.po:
# 	xgettext -k_ --foreign-user hello.c

es.mo: es.po
	msgfmt -o es.mo es.po
	
es.trm: build es.mo
	../src/trim-mo es.mo > es.trm

lang.h:	build es.mo
	../src/gen-header es.mo

hello.o: build lang.h hello.c
	../src/pointerize -m es.mo < hello.c > hello.tmp.c
	$(CC) $(CFLAGS) -o $@ -c hello.tmp.c
	rm hello.tmp.c

hello:	hello.o ../lib/loadtrm.o
	$(CC) $(CFLAGS) -o $@ hello.o -L $(LIBDIR) -lloadtrm

test: es.trm hello
	./hello

clean:
	rm -f *.o *~ es.mo es.trm lang.h

distclean: clean
	rm -f $(PROGRAMS)