ecsv avatar ecsv committed 5a02e52

Allow to build old Texture.asm for regression testing

Comments (0)

Files changed (1)

projects/unix/Makefile

 OBJDIRS = $(dir $(OBJECTS))
 $(shell $(MKDIR) $(OBJDIRS))
 
+# development only support for using asm on i386 linux
+ifeq ($(OLD_ASM),1)
+
+SOURCE = $(SRCDIR)/Glide64/Texture.asm
+
+OBJECTS += $(patsubst $(SRCDIR)/%.asm, $(OBJDIR)/%.o, $(filter %.asm, $(SOURCE)))
+
+AS          = nasm
+COMPILE.asm = $(AS) -O6 -felf -I$(SRCDIR)/Glide64/
+
+$(OBJDIR)/%.o: $(SRCDIR)/%.asm
+	$(COMPILE.asm) -o $@ $<
+
+endif
+
 # build targets
 TARGET = mupen64plus-video-glide64mk2$(POSTFIX).$(SO_EXTENSION)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.