# Makefile for set6x86, a program to get/set Cyrix 6x86 CPU config settings 
# from GNU/Linux

CFLAGS = -O2 -Wall

VERSION=1.5

#############################################################################

_VERSION = -DVERSION=\"$(VERSION)\"
 

get6x86: set6x86
	ln -sf set6x86 get6x86

set6x86: set6x86.c
	$(CC) $(CFLAGS) $(_VERSION) -o set6x86 set6x86.c

6x86_reg: 6x86_reg.c
	$(CC) $(CFLAGS) $(_VERSION) -o 6x86_reg 6x86_reg.c

all: set6x86 get6x86 6x86_reg

clean:
	rm -f get6x86 set6x86 6x86_reg *.o
