#
# Makefile for building 32bit Windows program
#

CC = gcc
CFLAGS = -Wall -O2
RC = RC.EXE

# rsxwdk extender for 32bit windows prgs (without recources!)
RSXW32 = C:\RSXWDK\RSXW32.EXE

# program name
PRG = clipview

OBJS = $(PRG).o

#
# We create two files :
#   PRG.exe - rsxw32.exe file with resources
#   PRG.w32 - the EMX/GCC output
#
all : $(PRG).exe $(PRG).w32
	@echo Make Ready!

$(PRG).exe: $(RSXW32)
	copy /B $(RSXW32) $(PRG).exe

$(PRG).w32: $(OBJS) \rsxwdk\lib\emx.a
	$(CC) -L/rsxwdk/lib -o $(PRG).w32 $(OBJS) -lemx
