From: SourceForge.net <no...@so...> - 2004-12-20 14:23:18
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=2904557 By: aboycalled3 Thank you -- that was exactly what I was looking for, but I still can't seem to get the makefile to work properly. I'm not a total C newbie, but I am a total C idiot. Again, nothing I can find online or in my notes/textbook from the Intro to Programming class I took in C a few years back is getting me where I need to be. Here are what I'm pretty sure are the relevant files, the original makefile (for MSVC) that was packaged with the bdftofon distribution and my best attempt at using the MinGW wiki docs to port the makefile to MinGW. Original: # This is an example Makefile for building a .fon file from several .bdf # files, converted to .fnt format by bdftofnt. You can include multiple sizes, # weights and styles of .fnt in the same .fon file. # Directory where the .BDF files which will be converted to .FNTs are located: BDFDIR = ..\fonts\example # Name of the font, as it will appear in the Windows font selection dialogues: FONTNAME = "Example" # Options for bdftofnt. The -c option forces the font to be a console font by # selecting OEM character set. You may alter these options, run bdftofnt -? # to see the available options. BDFTOFNTOPT = -c # Leave this define alone CFLAGS = -DWIN32 # The following targets show how to create a .FON file from multiple .FNT # files. They are examples only, I do not provide any .BDF files for these # names. You should change the occurrences of "example" to the appropriate # names for your .bdf, .fnt, and .fnt files as appropriate. all: example.fon example.fon: main.obj example.res link -out:example.fon main.obj example.res # Main is the stub for the font file main.obj: main.c bdftofnt.exe: bdftofnt.obj link -out:bdftofnt.exe bdftofnt.obj bdftofnt.obj: bdftofnt.c bdftofnt.c: fontinfo.h # example.obj: example.res # cvtres -i386 -v -d -o example.obj example.res example.res: example.rc rc -r -DWIN32 example.rc # If you do not have Perl, you can create the .rc file by hand. The first # line should be "#include <windows.h>". The following lines should contain # the resource number (starting at 1), a space, the word "FONT", another # space, and then the filename of the .FNT file for that font. See the # included file "example.rc" for an example. Note that this file will be # deleted by a "make clean", so be careful to copy it to a safe place if you # need to. example.rc: bdftofnt.exe exampler10.fnt exampleb10.fnt exampler11.fnt exampleb11.fnt perl rcgen.pl $? >example.rc # The .FNT files are converted from the .BDF files by the following lines. # Adjust these for the number, names and locations of your font files: exampler10.fnt: $(BDFDIR)\example-roman-10.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) exampleb10.fnt: $(BDFDIR)\example-bold-10.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) exampler11.fnt: $(BDFDIR)\example-roman-11.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) exampleb11.fnt: $(BDFDIR)\example-bold-11.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) clean: del /q *.exe *.obj example.res example.rc example*.fnt example.fon -- # This is an example Makefile for building a .fon file from several .bdf # files, converted to .fnt format by bdftofnt. You can include multiple sizes, # weights and styles of .fnt in the same .fon file. # Directory where the .BDF files which will be converted to .FNTs are located: BDFDIR = neep # Name of the font, as it will appear in the Windows font selection dialogues: FONTNAME = "neep" # Options for bdftofnt. The -c option forces the font to be a console font by # selecting OEM character set. You may alter these options, run bdftofnt -? # to see the available options. BDFTOFNTOPT = -c # Leave this define alone CFLAGS = -DWIN32 # The following targets show how to create a .FON file from multiple .FNT # files. They are examples only, I do not provide any .BDF files for these # names. You should change the occurrences of "example" to the appropriate # names for your .bdf, .fnt, and .fnt files as appropriate. all: neep.fon neep.fon: main.o neep.res gcc -o neep.fon main.o neep.res # Main is the stub for the font file main.o: main.c bdftofnt.exe: bdftofnt.o gcc -o bdftofnt.exe bdftofnt.o bdftofnt.o: bdftofnt.c bdftofnt.c: fontinfo.h # example.obj: example.res # cvtres -i386 -v -d -o example.obj example.res neep.res: neep.rc windres -DWIN32 neep.res # If you do not have Perl, you can create the .rc file by hand. The first # line should be "#include <windows.h>". The following lines should contain # the resource number (starting at 1), a space, the word "FONT", another # space, and then the filename of the .FNT file for that font. See the # included file "example.rc" for an example. Note that this file will be # deleted by a "make clean", so be careful to copy it to a safe place if you # need to. # example.rc: bdftofnt.exe # exampler10.fnt exampleb10.fnt # exampler11.fnt exampleb11.fnt neep.rc: bdftofnt.exe \ neepr24.fnt neepb24.fnt \ neepr18.fnt neepb18.fnt \ neepr14.fnt neepb14.fnt \ neepr12.fnt neepb12.fnt \ neepr10.fnt neepb10.fnt \ neepr9.fnt neepb9.fnt \ neepr8.fnt # The .FNT files are converted from the .BDF files by the following lines. # Adjust these for the number, names and locations of your font files: neepr8.fnt: $(BDFDIR)\neep-alt-iso8859-15-05x10.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr9.fnt: $(BDFDIR)\neep-alt-iso8859-15-05x11.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb9.fnt: $(BDFDIR)\neep-alt-iso8859-15-05x11-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr10.fnt: $(BDFDIR)\neep-alt-iso8859-15-06x11.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb10.fnt: $(BDFDIR)\neep-alt-iso8859-15-06x11-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr12.fnt: $(BDFDIR)\neep-alt-iso8859-15-06x13.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb12.fnt: $(BDFDIR)\neep-alt-iso8859-15-06x13-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr14.fnt: $(BDFDIR)\neep-alt-iso8859-15-08x15.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb14.fnt: $(BDFDIR)\neep-alt-iso8859-15-08x15-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr18.fnt: $(BDFDIR)\neep-alt-iso8859-15-10x20.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb18.fnt: $(BDFDIR)\neep-alt-iso8859-15-10x20-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepr24.fnt: $(BDFDIR)\neep-alt-iso8859-15-12x24.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) neepb24.fnt: $(BDFDIR)\neep-alt-iso8859-15-12x24-bold.bdf bdftofnt $(BDFTOFNTOPT) $? $@ $(FONTNAME) clean: del /q *.exe *.obj neep.res neep.rc neep*.fnt neep.fon -- I'm sorry I'm not getting it. The instructions on the Wiki seem very clear to me, but I just don't seem able to implement them and I have no idea what I'm doing wrong. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=7134 |