From: Alan Cox Date: Sat, 3 Jan 2015 00:28:22 +0000 (+0000) Subject: Makefile: tidy up levee Makefile X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0f934b287a1827eccd7979323b859b5a5718d4ad;p=FUZIX.git Makefile: tidy up levee Makefile --- diff --git a/Applications/levee/Makefile b/Applications/levee/Makefile index 246658b4..4f854e6a 100644 --- a/Applications/levee/Makefile +++ b/Applications/levee/Makefile @@ -1,16 +1,18 @@ +.SUFFIXES: .c .rel + CSRCS = beep.c blockio.c display.c doscall.c editcor.c exec.c find.c CSRCS += flexcall.c gemcall.c globals.c insert.c main.c misc.c modify.c CSRCS += move.c rmxcall.c ucsd.c undo.c unixcall.c wildargs.c -OBJS = $(SRCS,.c=.rel) +OBJS = $(CSRCS:.c=.rel) levee: $(OBJS) fcc -o levee $(OBJS) -$(OBJS): $(SRCS) +$(OBJS): $(CSRCS) .c.rel: - fcc -Os -c $(@:.rel=.c) + fcc -O2 -c $(@:.rel=.c) clean: - rm -rf $(OBJS) *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *~ *.rel *.asm + rm -rf $(OBJS) *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *~ *.rel *.asm levee levee.bin \ No newline at end of file