#
# Makefile
#

CC	= gcc -c
CFLAGS	= -Zmtd -O2
LD	= gcc
LDFLAGS	= -s -Zmtd
EMXPATH = D:\emx

#
# Inference Rules
#
.c.o :
	$(CC) $(CFLAGS) $*.c

#
# Files to use
#

SRCS = main.c profile.c tables.c window.c display.c target.c \
	magnify.c font.c color.c
OBJS = main.o profile.o tables.o window.o display.o target.o \
	magnify.o font.o color.o
LIBS =

#
# Target to Build
#

TARGET = tablet.exe

all : $(TARGET)

#
# Dependencies
#

tablet.exe : $(OBJS) tablet.def tablet.res
	$(LD) $(LDFLAGS) -o tablet.exe tablet.def tablet.res $(OBJS) $(LIBS)

tablet.res : tablet.rc resource.h tablet.ico tablet.ptr
	rc -r -i $(EMXPATH)\include tablet.rc

main.o    : main.c    tablet.h

profile.o : profile.c tablet.h

tables.o  : tables.c  tablet.h

window.o  : window.c  tablet.h resource.h

display.o : display.c tablet.h resource.h

target.o  : target.c  tablet.h resource.h

magnify.o : magnify.c tablet.h resource.h

font.o    : font.c    tablet.h resource.h

color.o   : color.c   tablet.h resource.h
