diff options
author | B. Watson <yalhcru@gmail.com> | 2016-02-04 03:55:58 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-02-04 03:55:58 -0500 |
commit | b6d1fb91ce749c996230df2e5ae7479759c11b53 (patch) | |
tree | 02937e8d8d23d6dce7e7f60f73a8720e118c8804 /Makefile | |
parent | 920b831dde1764e84f1846ebe69a8e37483338b8 (diff) | |
download | taipan-b6d1fb91ce749c996230df2e5ae7479759c11b53.tar.gz |
finally figured out a way to use ctags with mixed asm/C project
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -103,12 +103,21 @@ BIGNUM_CFLAGS=-DBIGNUM=BIGFLOAT #BIGNUM_CFLAGS=-DBIGNUM=BIGINT48 # Default rule for plain 'make' command is to build the binary. -all: $(XEX) +all: $(XEX) tags # I have F10 in my editor bound to 'make test', so: test: all atari800 -nobasic $(XEX) +# ctags. I forgot it can handle cc65 asm source. One wrinkle: C +# identifiers get prepended with an underscore from the POV of assembly +# code, and asm identifiers need a leading underscore to be used from +# C. There's probably a clever way to get ctags to handle this, but I +# don't know it, so I wrote a perl script to do the job. +tags: + ctags $(TAIMAIN_C_SRC) $(TAIMAIN_ASM_SRC) + perl fixtags.pl tags + # The above is fast & easy, but from time to time it's necessary # to test slow loading, make sure the title screen stuff works OK. testatr: taipan.atr @@ -227,7 +236,7 @@ convfont: convfont.c # Obligatory clean and distclean rules. clean: - rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat + rm -f *.o *.lst convfont *.xex AUTORUN.SYS taipan.atr ver.dat help.dat tags distclean: clean rm -f *~ core .*.swp 1.* 2.* 1 2 3 map map.* *.map a b c foo bar baz comptitle.s comptitle.dat |