#
# Makefile for NT Service
#

CC = gccw32 -Zsys

testsvc.exe: testsvc.o message.res service.o
	$(CC) -o testsvc.exe testsvc.o service.o -ladvapi32
	rsrc message.res testsvc.exe

testsvc.o: testsvc.cpp
	$(CC) -O2 -c testsvc.cpp

message.res: message.rc
	grc -r message.rc

message.rc: message.mc
	mc message.mc

testsvc.cpp: service.hpp message.h

service.o: service.cpp
	$(CC) -O2 -c service.cpp
