summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 5420c49c9fa5f36fc710d8355552a81be5d3316d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
GST_PACKAGE = gst-package
GST_CONVERT = gst-convert

CONVERT_RULES = -r'Osmo.LogManager->LogManager' \
		-r'Osmo.LogArea->LogArea'  \
		-r'Osmo.LogLevel->LogLevel' \
                -r'Osmo.TimerScheduler->TimerScheduler' \
		-r'Osmo.TLVDescription->TLVDescription' \
                -r'Sockets.StreamSocket->SocketStream' \
		-r'DateTime->DateAndTime' \
		-r'(Duration milliseconds: ``@args1) -> (Duration milliSeconds: ``@args1)' \
		-r'PP.PPCompositeParser->PPCompositeParser' \
		-r'PP.PPCompositeParserTest->PPCompositeParserTest' \
		-r'STInST.RBProgramNodeVisitor->RBProgramNodeVisitor' \
		-r'STInST.RBBracketedMethodParser->RBParser' \
		-r'Osmo.MessageBuffer->MessageBuffer' \
		-r'SystemExceptions.NotFound->NotFound' \
		-r'(``@object substrings: ``@args1)->(``@object subStrings: ``@args1)' \
		-r'(Dictionary from: ``@args1)->(Dictionary newFrom: ``@args1)' \
		-r'(``@object copyFrom: ``@args1)->(``@object copyFrom: ``@args1 to: ``@object size)' \
		-r'(``@object nl)->(``@object cr; lf)' \
		-r'(``@object methodSourceString)->(``@object sourceCode)' \
		-C -IPAGSTTests

# Can not be parsed right now..
#		-r'(``@object => ``@args1)->(``@object ==> ``@args1)'

TEST = \
	./test/SMPPPDUHeaderTest.st \
	./test/SMPPMessageTest.st

CONNECTION = \
	./connection/Extensions.st \
	./connection/SMPPConnection.st

CODEC = \
	./codec/attributes/SMPPOctetString.st \
	./codec/attributes/SMPPInteger.st \
	./codec/attributes/SMPPRegisteredDelivery.st \
	./codec/attributes/SMPPScheduleDeliveryTime.st \
	./codec/attributes/SMPPESMClass.st \
	./codec/attributes/SMPPDefaultMessageId.st \
	./codec/attributes/SMPPAddress.st \
	./codec/attributes/SMPPInterfaceVersion.st \
	./codec/attributes/SMPPSystemType.st \
	./codec/attributes/SMPPPassword.st \
	./codec/attributes/SMPPAddressNumberingPlanIndicator.st \
	./codec/attributes/SMPPValidityPeriod.st \
	./codec/attributes/SMPPValueHolder.st \
	./codec/attributes/SMPPReplaceIfPresentFlag.st \
	./codec/attributes/SMPPShortMessage.st \
	./codec/attributes/SMPPAddressTypeOfNumber.st \
	./codec/attributes/SMPPSystemId.st \
	./codec/attributes/SMPPDataCoding.st \
	./codec/attributes/SMPPPriorityFlag.st \
	./codec/attributes/SMPPProtocolId.st \
	./codec/attributes/SMPPServiceType.st \
	./codec/attributes/SMPPAddressRange.st \
	./codec/SMPPBodyBase.st \
	./codec/SMPPDeliverSM.st \
	./codec/SMPPMessage.st \
	./codec/SMPPEnquireLink.st \
	./codec/SMPPGenericNack.st \
	./codec/SMPPSubmitSM.st \
	./codec/SMPPPDUHeader.st \
	./codec/SMPPBindTransmitterBody.st \
	./codec/SMPPBindTransceiverResponse.st \
	./codec/SMPPBindTransceiver.st \
	./codec/SMPPUnbind.st

all:
	$(GST_PACKAGE) --test package.xml

convert:
	$(GST_CONVERT) $(CONVERT_RULES) -F squeak -f gst \
		-o fileout.st pharo-porting/compat_for_pharo.st \
		$(CODEC) \
		$(CONNECTION) \
		$(TEST) \
		pharo-porting/changes_for_pharo.st