diff options
-rw-r--r-- | Makefile.unix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile.unix b/Makefile.unix new file mode 100644 index 0000000..394e5b1 --- /dev/null +++ b/Makefile.unix @@ -0,0 +1,40 @@ +CC = gcc +WFLAGS = -Wmissing-prototypes -Wunused -Wimplicit -Wreturn-type -Wparentheses -pedantic +CFLAGS = -g $(WFLAGS) +FONDUOBJS = fondu.o readnfnt.o +UFONDOBJS = ufond.o ufondbdf.o ufondpfb.o ufondttf.o crctab.o +DFONT2RESOBJS = dfont2res.o crctab.o +SHOWOBJS = showfond.o +TOBINOBJS = tomacbinary.o crctab.o +FROMBINOBJS = frommacbinary.o + +bindir = /usr/local/bin + +all: fondu ufond showfond dfont2res tobin frombin + +fondu: $(FONDUOBJS) + $(CC) $(CFLAGS) -o fondu $(FONDUOBJS) + +ufond: $(UFONDOBJS) + $(CC) $(CFLAGS) -o ufond $(UFONDOBJS) + +showfond: $(SHOWOBJS) + $(CC) $(CFLAGS) -o showfond $(SHOWOBJS) + +dfont2res: $(DFONT2RESOBJS) + $(CC) $(CFLAGS) -o dfont2res $(DFONT2RESOBJS) + +tobin: $(TOBINOBJS) + $(CC) $(CFLAGS) -o tobin $(TOBINOBJS) + +frombin: $(FROMBINOBJS) + $(CC) $(CFLAGS) -o frombin $(FROMBINOBJS) + +clean: + -rm -f *.o fondu ufond showfond dfont2res tobin frombin + +distclean: clean + -rm Makefile + +install: all + cp fondu ufond showfond dfont2res tobin frombin $(bindir) |