From 0d5965212dc9956dd7f08fbeea1cd6603c575837 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 14 Apr 2019 16:45:26 -0400 Subject: add git revision to binaries, change some defaults --- src/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/Makefile') diff --git a/src/Makefile b/src/Makefile index 5efd335..0afccdf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -2,10 +2,14 @@ # Copyright (c) 2019, B. Watson. # All rights reserved. See doc/LICENSE.txt for legalese. +# If we're working from a git tree, embed the revision and date +# into the binary. +GITREV=$(shell sh ./gitrev) + CC = cl65 AR = ar65 APPS = telnet resolv -CFLAGS = -t atari -I../uip/uip -I. -O +CFLAGS = -t atari -I../uip/uip -I. -O -DGITREV=\"$(GITREV)\" # Default target: build all the binaries. all: fujichat.xex fujiconf.xex aexec.xex fujimenu.xex makeauto.xex about.xex loadmkau.xex loadmenu.xex keybuf.o @@ -69,4 +73,4 @@ keybuftest.xex: keybuftest.c keybuf.o # native, not Atari! clear_rts: clear_rts.c - cc -o clear_rts clear_rts.c + gcc -O2 -Wall -o clear_rts clear_rts.c -- cgit v1.2.3