# This file is part of the Java Card Firewall Tester program.
# 
# Authors: 
# 
# Wojciech Mostowski, woj@cs.ru.nl
# Erik Poll, erikpoll@cs.ru.nl
# Radboud University Nijmegen
# The Netherlands
# 
# Copyright (c) Wojciech Mostowski, Erik Poll,
# Radboud University Nijmegen (RU),
# Stichting Technische Wetenschappen (STW)
# 
# The Java Card Firewall Tester has been developed for the PinPas Java
# Card project, see http://www.win.tue.nl/pinpasjc/. The program is
# distributed under the licence terms that can be found in the LICENCE
# file in the main installation directory. Please refer to the LICENCE &
# README files for further information.


# Setup the location of your Java Card Development kit version 2.2.2

JCKIT222_LOCATION:=

all:
	mkdir -p bin
	javac -g -source 1.2 -target 1.1 -d bin -cp $(JCKIT222_LOCATION)/lib/api.jar src/firewallinterface/*.java src/firewallclients/*.java src/firewallserver/*.java src/firewallserverms/*.java
	$(JCKIT222_LOCATION)/bin/converter -classdir bin -out EXP JCA CAP -exportpath $(JCKIT222_LOCATION)/api_export_files:bin firewallinterface 0x66:0x69:0x6E:0x74:0x65:0x72:0x66:0x61:0x63:0x65 1.0
	$(JCKIT222_LOCATION)/bin/converter -classdir bin -out EXP JCA CAP -exportpath $(JCKIT222_LOCATION)/api_export_files:bin -applet 0x66:0x63:0x6C:0x69:0x65:0x6E:0x74:0x2E:0x61:0x70:0x70:0x31 firewallclients.ClientApplet1 -applet 0x66:0x63:0x6C:0x69:0x65:0x6E:0x74:0x2E:0x61:0x70:0x70:0x32 firewallclients.ClientApplet2 firewallclients 0x66:0x63:0x6C:0x69:0x65:0x6E:0x74 1.0
	$(JCKIT222_LOCATION)/bin/converter -classdir bin -out EXP JCA CAP -exportpath $(JCKIT222_LOCATION)/api_export_files:bin -applet 0x66:0x73:0x65:0x72:0x76:0x65:0x72:0x2E:0x61:0x70:0x70 firewallserver.ServerApplet firewallserver 0x66:0x73:0x65:0x72:0x76:0x65:0x72 1.0
	$(JCKIT222_LOCATION)/bin/converter -classdir bin -out EXP JCA CAP -exportpath $(JCKIT222_LOCATION)/api_export_files:bin -applet 0x66:0x73:0x65:0x72:0x76:0x65:0x72:0x6D:0x73:0x2E:0x61:0x70:0x70 firewallserverms.ServerApplet firewallserverms 0x66:0x73:0x65:0x72:0x76:0x65:0x72:0x6D:0x73 1.0
