aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/kdrive/neomagic/Makefile.am
blob: b449c37c51d9563688539212984cd0e47fba5419 (plain)
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
if KDRIVEFBDEV
FBDEV_INCLUDES =-I$(top_srcdir)/hw/kdrive/fbdev
FBDEV_LIBS = $(top_builddir)/hw/kdrive/fbdev/libfbdev.a
endif

if KDRIVEVESA
VESA_INCLUDES = -I$(top_srcdir)/hw/kdrive/vesa
VESA_LIBS = $(top_builddir)/hw/kdrive/vesa/libvesa.a
endif

INCLUDES =                      \
	@KDRIVE_INCS@               \
	$(FBDEV_INCLUDES)           \
	$(VESA_INCLUDES)            \
	@KDRIVE_CFLAGS@

bin_PROGRAMS = Xneomagic

noinst_LIBRARIES = libneomagic.a

libneomagic_a_SOURCES =         \
	neomagic.c                  \
	neomagic.h                  \
	neo_draw.c

Xneomagic_SOURCES = \
	neomagicstub.c

NEOMAGIC_LIBS =                 \
	libneomagic.a               \
	${FBDEV_LIBS}               \
	${VESA_LIBS}                \
	@KDRIVE_LIBS@

if GLX
Xneomagic_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
endif

Xneomagic_LDADD = \
	$(NEOMAGIC_LIBS)            \
	@KDRIVE_LIBS@               \
	@XSERVER_LIBS@		  

Xneomagic_DEPENDENCIES =	\
	libneomagic.a               \
	@KDRIVE_LOCAL_LIBS@

relink:
	rm -f $(bin_PROGRAMS) && make $(bin_PROGRAMS)