Revision b8b57e269c64f67bb4bbd1539da9c1d863077741 authored by Mike Stewart on 07 August 2021, 22:47:38 UTC, committed by Mike Stewart on 07 August 2021, 22:47:38 UTC
1 parent feabfcc
Raw File
Makefile
# I, the author, Ron Burkey, declare this Makefile to be in the
# Public Domain under U.S. law.
#
# Filename:	Makefile
# Purpose:	Makefile for the yaLVDC emulator.
# Mods:		2011-12-23 RSB	Adapted from yaASM Makefile.
#		2020-04-30 RSB	Removed the compiler -m32 switch, which
#				doesn't work for my current gcc setup.
#				I don't even recall why it had been there.
#				Also made the Makefile public domain. 
#
# The default is to build using the native gcc. To cross build from 
# Linux to get Win32 and Mac OS X executables as well (make all-archs), 
# you need to have IMCROSS (http://www/sandroid.org/imcross) installed.

TARGET=yaLVDC

ifndef cc
cc=gcc
endif

ifeq "${USER}" "rburkey"
#CFLAGS+=-Wall -Werror -O3
CFLAGS+=-Wall -Werror -O0 -g
endif

SOURCE:=$(wildcard *.c)

.PHONY:	default
default: ${TARGET}

.PHONY: all-archs
all-archs: ${TARGET}

${TARGET}: ${SOURCE} yaLVDC.h Makefile
	${cc} ${CFLAGS} -o $@ *.c

.PHONY:	clean
clean:
	-rm ${TARGET}


back to top