aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-04-14 16:45:26 -0400
committerB. Watson <yalhcru@gmail.com>2019-04-14 16:45:26 -0400
commit0d5965212dc9956dd7f08fbeea1cd6603c575837 (patch)
tree7b06793d280262eb96bd31e03d7bf23e15e34d1b /src/Makefile
parenta2324680cd3ca1b82ec6eda214edc56b57bf19b5 (diff)
downloadfujichat-0d5965212dc9956dd7f08fbeea1cd6603c575837.tar.gz
add git revision to binaries, change some defaults
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile8
1 files changed, 6 insertions, 2 deletions
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