This commit is contained in:
mahoneyt944 2021-04-10 09:55:47 -04:00 committed by GitHub
parent 097c238fc6
commit 022364577b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 6 deletions

View File

@ -1,9 +1,29 @@
TARGET := datmagic
# Attempt to detect target platform
ifeq '$(findstring ;,$(PATH))' ';'
UNAME := Windows
else
UNAME := $(shell uname 2>/dev/null || echo Unknown)
UNAME := $(patsubst CYGWIN%,Cygwin,$(UNAME))
UNAME := $(patsubst MSYS%,MSYS,$(UNAME))
UNAME := $(patsubst MINGW%,MSYS,$(UNAME))
endif
# Add '.exe' extension on Windows platforms
ifeq ($(UNAME), Windows)
TARGET := datmagic.exe
endif
ifeq ($(UNAME), MSYS)
TARGET := datmagic.exe
endif
CFLAGS := -O2 -Wall -Wextra
all: datmagic
all: $(TARGET)
clean:
rm -f datmagic.exe
rm -f $(TARGET) mame2003-plus.html
datmagic: datmagic.c
$(TARGET): datmagic.c
$(CC) $(CFLAGS) -o $@ $<

View File

@ -3,9 +3,6 @@
Beta version 5 - Jan. 17th 2021
by: mahoneyt944 - MAME 2003-Plus Team.
- Still need to generalize the XML DAT and h1 header name instead of hardcoded to 2003+
- Currently tested to be compatible with MAME2003-Plus, MAME2003, MAME2010, MAME2014, MAME2015
*/
#include <stdio.h>