Integrate OS identification
Make file integrates a condition on OS based on sighingnow's work so that makefile works regardless of the OS.
@@ -16,9 +16,21 @@ SRC := src
RES:= res
INCLUDE:= inc
+
+OSFLAG :=
+ifeq ($(OS),Windows_NT)
SHELL:= $(BIN)/sh
RM:= $(BIN)/rm
CP:= $(BIN)/cp
+ MKDIR:= $(BIN)/mkdir
+else
+ RM= rm
+ CP= cp
+ MKDIR= mkdir
+ SHELL= sh
+endif
+
+
CC:= $(BIN)/gcc
LD:= $(BIN)/ld
NM:= $(BIN)/nm
@@ -30,7 +42,6 @@ MACCER := $(BIN)/mac68k
SIZEBND:= $(BIN)/sizebnd
BINTOS:= $(BIN)/bintos
RESCOMP:= $(JAVA) -jar $(BIN)/rescomp.jar
-MKDIR := $(BIN)/mkdir
SRC_C= $(wildcard *.c)
SRC_C+= $(wildcard $(SRC)/*.c)
