Newer
Older
Scratch / mobius / src / short / Makefile
@Christopher W. Olsen Christopher W. Olsen on 25 Oct 2019 418 bytes Scratch
TARGET=	$(BIN)/short.exe
OBJS=	short.o 
LIBS=	$(LIB)/libc.lib $(LIB)/kernelu.lib

include ..\make.actions

all:	$(TARGET)

$(TARGET):	$(OBJS) ../crt0.o short.res.o $(LIBS)
#	link /out:$(TARGET) $(OBJS) /subsystem:console /nodefaultlib \
#		../crt0.o $(LIB)/libc.lib $(LIB)/kernelu.lib
	ld -o $(TARGET) \
		$(OBJS) ../crt0.o short.res.o \
		$(LIBS) \
		--subsystem console --image-base 0x40000000

include $(OBJS:.o=.d)