summaryrefslogtreecommitdiff
path: root/as
diff options
context:
space:
mode:
Diffstat (limited to 'as')
-rw-r--r--as/Makefile9
-rw-r--r--as/as.c1
2 files changed, 3 insertions, 7 deletions
diff --git a/as/Makefile b/as/Makefile
index 5873f14..dec98d1 100644
--- a/as/Makefile
+++ b/as/Makefile
@@ -1,8 +1,4 @@
-ifeq ($(VERSION),)
-include Version
-endif
-
CFLAGS=-O
LDFLAGS=-s
LIBDIR=/usr/bin
@@ -20,7 +16,7 @@ as86: $(OBJS)
as86_encap: as86_encap.sh
sed -e "s:%%LIBDIR%%:$(LIBDIR):" -e "s:%%BINDIR%%:$(BINDIR):" \
- < $^ > tmp
+ < as86_encap.sh > tmp
@mv -f tmp $@
chmod +x $@
@@ -35,7 +31,7 @@ clean realclean clobber:
rm -f *.o as86 as86_encap
.c.o:
- $(CC) -DVERSION='"$(VERSION)"' $(CFLAGS) -c $<
+ $(CC) $(CFLAGS) -c $<
as.o: const.h type.h byteord.h macro.h file.h flag.h globvar.h
assemble.o: const.h type.h address.h globvar.h opcode.h scan.h
@@ -53,4 +49,3 @@ pops.o: const.h type.h address.h flag.h globvar.h opcode.h scan.h
readsrc.o: const.h type.h flag.h file.h globvar.h macro.h scan.h source.h
scan.o: const.h type.h globvar.h scan.h
table.o: const.h type.h globvar.h opcode.h scan.h
-
diff --git a/as/as.c b/as/as.c
index 1d58be4..d592b0b 100644
--- a/as/as.c
+++ b/as/as.c
@@ -15,6 +15,7 @@
#include "file.h"
#include "flag.h"
#include "globvar.h"
+#include "version.h"
PUBLIC char hexdigit[] = "0123456789ABCDEF"; /* XXX - ld uses lower case */