File: Makefile.in

package info (click to toggle)
ida 0.12
  • links: PTS
  • area: contrib
  • in suites: woody
  • size: 712 kB
  • ctags: 1,027
  • sloc: ansic: 9,413; sh: 152; makefile: 103; perl: 12
file content (112 lines) | stat: -rw-r--r-- 2,532 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
srcdir=@srcdir@
VPATH=$(srcdir)

# directories
DESTDIR=
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=$(DESTDIR)@bindir@
mandir=$(DESTDIR)@mandir@
resdir=$(DESTDIR)@RESDIR@

# programs
CC=@CC@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_DIR=@INSTALL@ -d -m 755

# cflags / libs
WARN=-Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
VER=-DVERSION='"@IDA_VERSION@"' -DUSE_X11
CFLAGS=@CFLAGS@ $(WARN) $(VER) -I$(srcdir) @X_CFLAGS@
MAGICK=@MAGICK@
LDLIBS=@X_LIBS@ @LIBS@ -lXm -lXt @X_PRE_LIBS@ -lXext \
	-lX11 @X_EXTRA_LIBS@ @LIBS@ $(MAGICK) -lXpm -lm

# build
TARGET=ida
LOCALES=de
OBJS=ida.o man.o hex.o x11.o viewer.o dither.o icons.o RegEdit.o browser.o \
	selections.o xdnd.o op.o filter.o lut.o color.o \
	loader.o ppm.o xwd.o ps.o xpm.o bmp.o @GFX@


########################################################################
# rules

all build:: $(TARGET) $(I18N)

$(TARGET): $(OBJS)
	$(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS)


giftest: giftest.c
	$(CC) $(CFLAGS) -o $@ giftest.c $(UNGIF3) -lungif -lefence


Ida.ad.h: Ida.ad fallback.pl
	perl fallback.pl < Ida.ad > $@

logo.h: logo.jpg
	hexdump -v -e '1/1 "0x%02x,"' < logo.jpg > $@

Ida.ad: Ida-default Ida-fixed
	cat Ida-default Ida-fixed > $@

i18n:
	set -ex; for lang in $(LOCALES); do		\
	  cat Ida-$$lang Ida-fixed > Ida.$$lang.ad;	\
	done

install:: all install-i18n
	$(INSTALL_DIR) $(bindir)
	$(INSTALL_DIR) $(mandir)/man1
	$(INSTALL_DIR) $(resdir)/app-defaults
	$(INSTALL_PROGRAM) -s $(TARGET) $(bindir)
	$(INSTALL_DATA) ida.man $(mandir)/man1/ida.1
	$(INSTALL_DATA) Ida.ad $(resdir)/app-defaults/Ida

install-i18n: i18n
	set -ex; for lang in $(LOCALES); do		\
	  dir="$(resdir)/$$lang/app-defaults";		\
	  $(INSTALL_DIR) $$dir;				\
	  $(INSTALL_DATA) Ida.$$lang.ad $$dir/Ida;	\
	done

clean::
	-rm -f $(OBJS)

realclean distclean:: clean
	-rm -f config.cache config.h config.log config.status Makefile
	-rm -f $(TARGET) *~ xpm/*~ *.bak Ida*.ad Ida.ad.h logo.h
	cp Makefile.clean Makefile

depend dep:: Ida.ad.h logo.h
	gccmakedep -- $(CFLAGS) -- *.c


########################################################################
# maintainer stuff

auto: clean
	rm -f config.cache
	autoconf
	autoheader
	./configure
	make depend
	make

checkit: realclean
	dpkg-buildpackage -tc -us -uc -rfakeroot
	lintian ../ida*.changes

release: realclean
	dpkg-buildpackage -tc -rfakeroot

port:
	dpkg-buildpackage -b -tc -rfakeroot


########################################################################
# DO NOT DELETE