# Makefile for bogomips v1.2 and C68 v4.24c

# Directories:

T = ram1_
P = win5_C68_

# Program names:

CC  = cc
AS  = as68
ASM = qmac
LD  = ld

# use this for the portable bogomips program
#DEFS = -DPORTABLE_BOGOMIPS

# use this for the original Linux bogomips program
#DEFS = -DCLASSIC_BOGOMIPS

# use this for the QNX specific bogomips program
#DEFS = -DQNX_BOGOMIPS

# uncomment this if your system does not define CLOCKS_PER_SEC
# should match units returned by clock() function
#DEFS = -DPORTABLE_BOGOMIPS -DCLOCKS_PER_SEC=100000

# Program flags:

CCFLAGS  = -tmp$(T) -v -O -Y$(P) -I$(P)include_
ASFLAGS  = -V
ASMFLAGS = -nolist
LDFLAGS  = -v -L$(P)lib_ -bufp350K\

# Target name:

EXEC = bogomips

# Additional libraries:

LIBS =

# Target dependencies:

OBJECTS = bogomips_o delay_o timer_rel

$(EXEC) : $(OBJECTS)
    $(LD) -o$(EXEC) $(LDFLAGS) $(OBJECTS) $(LIBS)

# Construction rules:

_c_o :
    $(CC) -c $(CCFLAGS) $<

_s_o :
    $(AS) $(ASFLAGS) $< $@

_asm_rel :
    $(ASM) $< $(ASMFLAGS)

#end
