Create your own header file. It became compilable with only Wonx.
Since there is a possibility that the Error () function will collide with libwonx.a when linking, It changed to Wonx_Error (). Added bios_exit (). sprite_set_char, sprite_get_char, palette number minus 8 Fixed bug that was not specified. font_set_monodata (), font_set_colordata (), font_get_data (), disp.c, The arguments of screen_set_char (), screen_get_char (), sprite_set_data () Changed from void * to appropriate type. Sample program and attached SpeedMac. I added a document. Version 0.3 beta - from wonx-b03.tar.gz
This commit is contained in:
36
Makefile
36
Makefile
@@ -2,11 +2,15 @@ XINCLUDEDIR = /usr/X11R6/include
|
||||
INCLUDEDIR = .
|
||||
XLIBDIR = /usr/X11R6/lib
|
||||
|
||||
VERSION = Wonx-b02
|
||||
PKGNAME = wonx-b02
|
||||
VERSION = Wonx-b03
|
||||
PKGNAME = wonx-b03
|
||||
|
||||
SMAC = smac-b02
|
||||
|
||||
OBJS = WWCharacter.o WWColorMap.o WWDisplay.o WWLCDPanel.o WWPalette.o WWScreen.o WWSprite.o WWText.o WWInterrupt.o WWTimer.o Wonx.o WonxDisplay.o WonxText.o WonxSystem.o XDisplay.o UNIXTimer.o bank.o comm.o disp.o text.o key.o sound.o system.o timer.o etc.o
|
||||
|
||||
CC = gcc
|
||||
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
all : libwonx.a
|
||||
@@ -16,16 +20,38 @@ libwonx.a : $(OBJS)
|
||||
# ranlib libwonx.a
|
||||
|
||||
.c.o : $*.c
|
||||
gcc -c $*.c -O -Wall -I$(INCLUDEDIR) -I$(XINCLUDEDIR)
|
||||
$(CC) -c $*.c -O -Wall -I$(INCLUDEDIR) -I$(XINCLUDEDIR)
|
||||
|
||||
clean :
|
||||
rm -f libwonx.a *.o
|
||||
rm -f libwonx.a sample1 sample2 *.o
|
||||
|
||||
sample1 : libwonx.a sample1.o
|
||||
$(CC) sample1.o -o sample1 \
|
||||
-L. -L/usr/X11R6/lib -lwonx -lX11 -lXt
|
||||
|
||||
sample2 : libwonx.a sample2.o
|
||||
$(CC) sample2.o -o sample2 \
|
||||
-L. -L/usr/X11R6/lib -lwonx -lX11 -lXt
|
||||
|
||||
smac : libwonx.a
|
||||
unzip $(SMAC).zip
|
||||
cp -R wonx_include $(SMAC)
|
||||
cp libwonx.a $(SMAC)
|
||||
mv $(SMAC)/makefile $(SMAC)/makefile.orig
|
||||
cp makefile_for_smac $(SMAC)/makefile
|
||||
cp sys2wonx.pl $(SMAC)
|
||||
echo "<22><><EFBFBD><EFBFBD><EFBFBD>ǻߤޤä<DEA4><C3A4>Ȥ<EFBFBD><C8A4>ϡ<EFBFBD>sys2wonx.pl <20>Σ<EFBFBD><CEA3><EFBFBD><EFBFBD>ܤ<EFBFBD>Ŭ<EFBFBD>ڤ<EFBFBD>perl<72><6C><EFBFBD><EFBFBD><EFBFBD>ꤷ<EFBFBD>Ƥ<EFBFBD><C6A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
cd $(SMAC) ; ./sys2wonx.pl *.[ch]
|
||||
cd $(SMAC) ; $(MAKE)
|
||||
|
||||
package :
|
||||
mkdir -p $(PKGNAME)
|
||||
rm -fR $(PKGNAME)/*
|
||||
mkdir -p $(PKGNAME)/wonx_include
|
||||
cp COPYING COPYRIGHT HISTORY README OMAKE.jpn Makefile \
|
||||
*.h *.c $(PKGNAME)
|
||||
makefile_for_smac sys2wonx.pl \
|
||||
*.h *.c smac*.zip $(PKGNAME)
|
||||
cp wonx_include/*.h $(PKGNAME)/wonx_include
|
||||
tar cvzf $(PKGNAME).tar.gz $(PKGNAME)
|
||||
|
||||
# End of Makefile.
|
||||
|
||||
Reference in New Issue
Block a user