X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hexed%2FMakefile;h=ffb1aebc167736b6b5ed57987843518eea50b9f5;hb=80560599cc9edf7843cc4bc36d0933c651084bd1;hp=bfe4a04cd46fe70e5a0a373ea1943b93687fc99c;hpb=4db6e09fa46ca4eccb34069d815635dfb86065cf;p=megadrive.git diff --git a/hexed/Makefile b/hexed/Makefile index bfe4a04..ffb1aeb 100644 --- a/hexed/Makefile +++ b/hexed/Makefile @@ -3,10 +3,10 @@ AS = $(CROSS)as LD = $(CROSS)ld OBJCOPY = $(CROSS)objcopy -ASFLAGS = -m68000 --register-prefix-optional --bitwise-or +ASFLAGS += -m68000 --register-prefix-optional --bitwise-or -pic -TARGET = nshtest.bin -OBJS = sega_gcc.o test.o +TARGET = hexed.bin +OBJS = sega_gcc.o hexed.o font.o all : $(TARGET) @@ -19,3 +19,18 @@ a.out : $(OBJS) clean: $(RM) $(TARGET) $(OBJS) $(TARGET).map a.out + +# ----------- release ----------- +ifneq ($(findstring rel,$(MAKECMDGOALS)),) +ifeq ($(VER),) +$(error need VER) +endif +endif + +rel: hexed.bin readme.txt src + zip -9 -r hexed_r$(VER).zip $^ + rm -rf src + +src: hexed.s font.s sega_gcc.s md.ld Makefile + mkdir src + cp $^ src/