# Makefile for set6x86, a program to get/set Cyrix 6x86 CPU config settings 
# from Linux or DOS
#
#
# to compile from DOS, use "make dos" instead of just "make"
# DOS version uses the Linux-based DOS cross-compiler "gcc_dos"
CC=gcc
CFLAGS = -O2 -Wall
VERSION=1.2
#############################################################################
_VERSION = -DVERSION=\"$(VERSION)\"
 
get6x86: set6x86
	cp set6x86.exe get6x86.exe
set6x86: set6x86.c
	$(CC) $(CFLAGS) $(_VERSION) set6x86.c -los2
dos: set6x86.c
	gcc -s $(CFLAGS) $(_VERSION) set6x86.c -los2
#	ln -sf set6x86.exe get6x86.exe
all: set6x86 get6x86 dos
clean:
	rm -f get6x86 set6x86 set6x86.exe get6x86.exe *.o
