
hello: hello.nlm
	echo kuk

opravduall: chargend.nlm

NLMCONV=/usr/users/vitas/nlmconv

gmp1.nlm: gmp1.def
	nlmconv --output-target=nlm32-i386 -T gmp1.def

chargend.nlm: chargend.o chargend.def
	nlmconv --output-target=nlm32-i386 -T chargend.def
	cp chargend.nlm x/system/
	cp keys.txt x/system/

hello.nlm: hello.o hello.def
	$(NLMCONV) --output-target=nlm32-i386 -T hello.def
	echo vivat
#	nlmconv -T hello.def

chargend.o: chargend.c
	gcc -c chargend.c -I./include/nlm -I./include/

hello.o: hello.c
	gcc -c hello.c -I./include/nlm -I./include/

mount:
	ncpmount -S PUCK -V sys -U vita_s x
umount: 
	ncpumount x

clean:
	rm -f *.o core *.o~

%.nlm: %.def
	nlmconv --output-target=nlm32-i386 -T $<

gmpcp:
	cp gmp?.nlm x/gmp/
