File: Makefile.in

package info (click to toggle)
xenophilia 0.8-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 840 kB
  • ctags: 1,202
  • sloc: ansic: 11,181; makefile: 188; python: 47
file content (64 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download | duplicates (2)
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

ENGINE_DIR	= $(PREFIX)/@GTK_ENGINE_DIR@
THEME_DIR	= $(PREFIX)/@GTK_THEME_DIR@

objects		= xeno_theme.o xeno_rc_style.o xeno_style.o xeno_style_draw.o \
		  xeno_style_fill.o xeno_style_images.o xeno_color.o xeno_patches.o

SONAME		= libxeno.so.@VERSION@
SHORTNAME	= libxeno.so.@MAJOR@
TINYNAME	= libxeno.so

#-- Targets ----------------------------------------
$(SONAME):	$(objects)
		$(CC) $(LDFLAGS) $(LIBS) $(GTK_LIBS) $(objects) -shared -Wl,-soname,$(SHORTNAME) -o $(SONAME)

%.o:		%.c
		$(CC) $(CFLAGS) $(GTK_CFLAGS) -c $< -o $@

install:	$(SONAME)
		install -d $(ENGINE_DIR)
		chmod 755 $(SONAME)
		cp -fdp $(SONAME) $(ENGINE_DIR)
		ln -fs $(SONAME) $(ENGINE_DIR)/$(SHORTNAME)
		ln -fs $(SONAME) $(ENGINE_DIR)/$(TINYNAME)

uninstall:
		rm -f $(ENGINE_DIR)/$(TINYNAME)*

strip:		$(SONAME)
		strip $(SONAME)

noobjs:
		rm -f $(objects) core *~

clean:		noobjs
		rm -f *.so*

distclean:	clean
		rm -f Makefile

# quick and dirty way of installing without having to be root
minstall:	$(SONAME)
		su -c "cp $(SONAME) $(ENGINE_DIR)"

minstall-strip:	strip minstall

# objects

xeno_theme.o:		xeno_theme.c xeno_theme.h xeno_rc_style.h xeno_style.h

xeno_rc_style.o:	xeno_rc_style.c xeno_rc_style.h xeno_style.h xeno_theme.h

xeno_style.o:		xeno_style.c xeno_style.h xeno_style_draw.h xeno_rc_style.h xeno_color.h xeno_theme.h

xeno_style_draw.o:	xeno_style_draw.c xeno_style_draw.h xeno_style.h xeno_style_fill.h xeno_rc_style.h xeno_color.h xeno_style_images.h xeno_theme.h

xeno_style_fill.o:	xeno_style_fill.c xeno_style_fill.h xeno_style.h xeno_rc_style.h xeno_color.h xeno_theme.h

xeno_style_images.o:	xeno_style_images.c xeno_style_images.h xeno_color.h xeno_theme.h

xeno_color.o:		xeno_color.c xeno_color.h xeno_style.h xeno_rc_style.h xeno_theme.h

xeno_patches.o:		xeno_patches.c xeno_patches.h xeno_rc_style.h xeno_theme.h