1#---------------------------------------------------------------------- 2# Makefile for SVGAlib GL routines. 3#---------------------------------------------------------------------- 4 5# *** NO SERVICIBLE PARTS HERE! 6# All options are in Makefile.cfg. 7 8include ../Makefile.cfg 9 10srcdir = .. 11VPATH = $(srcdir)/gl 12 13ifeq (a.out, $(TARGET_FORMAT)) 14 DEFINES += -DSVGA_AOUT 15endif 16 17ifeq (y, $(NO_ASM)) 18 DEFINES += -DNO_ASSEMBLY 19endif 20 21#---------------------------------------------------------------------- 22# Rules Section 23#---------------------------------------------------------------------- 24 25MODULES = grlib.o driver.o line.o palette.o scale.o text.o font8x8.o \ 26 cbitmap.o mem.o cctext.o 27 28all: libvgagl.a 29.PHONY: all clean dep 30 31libvgagl.so.$(VERSION): $(MODULES) 32 $(CC) -s -shared -Wl,-soname,libvgagl.so.$(MAJOR_VER) -o libvgagl.so.$(VERSION) \ 33 $(MODULES) 34 /bin/ln -sf libvgagl.so.$(MAJOR_VER) libvgagl.so 35 36libvgagl.a: $(MODULES) 37 rm -f libvgagl.a 38 $(AR) rcs libvgagl.a $(MODULES) 39 40.c.o: 41 $(CC) $(CFLAGS) -c -o $*.o $< 42 43.S.s: 44 $(CC) $(CFLAGS) -E $< >$@ 45 46.s.o: 47 $(CC) $(CFLAGS) -c -o $*.o $< 48 49.c.s: 50 $(CC) $(CFLAGS) -S -o $*.s $< 51 52.o: 53 $(CC) $(CFLAGS) $(LDFLAGS) -o $* $*.o $(LIBS) 54 chmod 4755 $* 55 56$(MODULES): .depend.gl 57 58dep: 59 rm -f .depend.gl 60 make depend 61 62.depend.gl: 63 echo '# GL Module dependencies' >>.depend.gl 64 $(CC) $(INCLUDES) -MM $(patsubst %.o,$(srcdir)/gl/%.c,$(MODULES)) >>.depend.gl 65 66clean: 67 rm -f .depend.gl *.bak *.o *~ libvgagl.a libvgagl.so.$(VERSION) 68 69# 70# include a dependency file if one exists 71# 72ifeq (.depend.gl,$(wildcard .depend.gl)) 73include .depend.gl 74endif 75