# Makefile for "dram" -- a program to change the default value of the
# dram refresh timer
#
# Copyright 1994, by Paul Gortmaker.
#

CC = gcc

CFLAGS = -O2 -Wall -Wstrict-prototypes -m486 -s -N

# Uncomment the following if you want to use cli/sti pairs around the port
# outputs (probably the safest). Otherwise it will use ioperm() on
# the affected ports and _not_ use a cli/sti pair, which _is_ used
# with iopl().

CFLAGS := -D_USE_IOPL $(CFLAGS)

OBJS =
LIBS =

# Uncomment the following lines for debugging, and comment out 
# the CFLAGS above.

#DCFLAGS = -O -Wall -Wstrict-prototypes -m486 -g
#DCFLAGS := -D_USE_IOPL $(DCFLAGS)

# Useless DOS. Should have a "rm".... grumble.
RM = rm -f

all: dram

dram:  dram.c
	$(CC) $(CFLAGS) $(DCFLAGS) dram.c -o dram

clean:
	$(RM) *.o
	$(RM) core

spotless: clean
	$(RM) dram
