head     1.1;
branch   1.1.1;
access   ;
symbols  gfxboot25:1.1.1.1 morphix:1.1.1;
locks    ; strict;
comment  @# @;


1.1
date     2005.10.17.17.11.57;  author tcheun;  state Exp;
branches 1.1.1.1;
next     ;

1.1.1.1
date     2005.10.17.17.11.57;  author tcheun;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@CC	 = gcc
CFLAGS	 = -g -Wall -O2 -fomit-frame-pointer
X11LIBS	 = /usr/X11R6/lib
THEMES	 = $(wildcard themes/*)
# LIBFILES = happysuse.mod system.inc
GZIP 	 = gzip -9 

.PHONY: all themes clean install

all:	bin2c mkbootmsg bincode getx11font addblack changeloggz

changeloggz:
	$(GZIP) -c ./Changelog > Changelog.gz

getx11font: getx11font.c
	$(CC) $(CFLAGS) -L$(X11LIBS) $< -lX11 -o $@@

mkbootmsg: mkbootmsg.c vocabulary.h bincode.h
	$(CC) $(CFLAGS) $< -o $@@

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

bincode:  bincode.asm vocabulary.inc modplay_defines.inc modplay.inc kroete.inc
	nasm -f bin -O10 -o $@@ -l $(@@).lst $<

bincode.h:  bincode bin2c
	./bin2c bincode >bincode.h

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

vocabulary.inc: mk_vocabulary
	./mk_vocabulary -a >$@@

vocabulary.h: mk_vocabulary
	./mk_vocabulary -c >$@@

install: all
	install -d -m 755 $(DESTDIR)/usr/sbin $(DESTDIR)/usr/share/gfxboot/themes
	install -m 755 mkbootmsg getx11font help2txt $(DESTDIR)/usr/sbin
#	install -m 644 $(LIBFILES) $(DESTDIR)/usr/share/gfxboot
	cp -a  themes/SuSE $(DESTDIR)/usr/share/gfxboot/themes

clean: themes
	@@rm -f mkbootmsg bincode getx11font addblack bincode.h bin2c *.lst vocabulary.inc vocabulary.h *~ Changelog.gz

themes:
	@@for i in $(THEMES) ; do make -C $$i BINDIR=../../ $(MAKECMDGOALS) ; done

@


1.1.1.1
log
@morhhix
@
text
@@
