blob: 1c48b35a45f12deb129cf3b93e7536531a8ab673 (
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
|
CC = gcc
CFLAGS = -g -Wall -O2 -fomit-frame-pointer
X11LIBS = /usr/X11/lib
THEMES = $(wildcard themes/*)
# LIBFILES = happysuse.mod system.inc
.PHONY: all themes clean install
all: bin2c mkbootmsg bincode getx11font addblack
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
install -m 755 mkbootmsg getx11font help2txt $(DESTDIR)/usr/sbin
# install -m 644 $(LIBFILES) $(DESTDIR)/usr/share/gfxboot
cp -a themes $(DESTDIR)/usr/share/gfxboot
clean: themes
@rm -f mkbootmsg bincode getx11font addblack bincode.h bin2c *.lst vocabulary.inc vocabulary.h *~
themes:
@for i in $(THEMES) ; do make -C $$i BINDIR=../../ $(MAKECMDGOALS) ; done
|