CC=g++
CFLAGS= -O
MYSQLI=/usr/include/mysql
MYSQLL=/usr/lib64/mysql

DRCFILES=dr936.cpp dr937.cpp dr938.cpp dr939.cpp dr941.cpp

DGLFILES=ts901.dgl ts902.dgl ts903.dgl ts904.dgl ts905.dgl ts906.dgl ts907.dgl ts908.dgl ts909.dgl ts910.dgl \
	ts911.dgl ts912.dgl ts913.dgl ts914.dgl ts915.dgl ts916.dgl ts917.dgl ts918.dgl ts919.dgl ts920.dgl \
	ts921.dgl ts922.dgl ts923.dgl ts924.dgl ts925.dgl ts926.dgl ts927.dgl ts928.dgl ts929.dgl ts930.dgl \
	ts931.dgl ts932.dgl ts933.dgl ts934.dgl ts935.dgl ts936.dgl ts937.dgl ts938.dgl ts939.dgl ts940.dgl \
	ts941.dgl ts942.dgl ts943.dgl ts944.dgl ts945.dgl ts946.dgl ts947.dgl ts948.dgl ts949.dgl ts950.dgl \
	ts951.dgl ts952.dgl ts953.dgl ts954.dgl ts955.dgl ts956.dgl ts957.dgl ts958.dgl ts959.dgl ts960.dgl \
	ts961.dgl ts962.dgl ts963.dgl ts964.dgl ts965.dgl ts966.dgl ts967.dgl ts968.dgl ts969.dgl ts970.dgl \
	ts971.dgl ts972.dgl ts973.dgl ts974.dgl ts975.dgl ts976.dgl ts977.dgl ts978.dgl ts979.dgl ts980.dgl \
	ts981.dgl ts982.dgl ts983.dgl ts984.dgl ts985.dgl ts986.dgl ts987.dgl ts988.dgl ts989.dgl ts990.dgl \
	ts991.dgl ts992.dgl ts993.dgl ts994.dgl ts995.dgl ts996.dgl ts997.dgl ts998.dgl ts999.dgl ts1000.dgl

CFILES= ts901.cpp ts902.cpp ts903.cpp ts904.cpp ts905.cpp ts906.cpp ts907.cpp ts908.cpp ts909.cpp ts910.cpp \
	ts911.cpp ts912.cpp ts913.cpp ts914.cpp ts915.cpp ts916.cpp ts917.cpp ts918.cpp ts919.cpp ts920.cpp \
	ts921.cpp ts922.cpp ts923.cpp ts924.cpp ts925.cpp ts926.cpp ts927.cpp ts928.cpp ts929.cpp ts930.cpp \
	ts931.cpp ts932.cpp ts933.cpp ts934.cpp ts935.cpp ts936.cpp ts937.cpp ts938.cpp ts939.cpp ts940.cpp \
	ts941.cpp ts942.cpp ts943.cpp ts944.cpp ts945.cpp ts946.cpp ts947.cpp ts948.cpp ts949.cpp ts950.cpp \
	ts951.cpp ts952.cpp ts953.cpp ts954.cpp ts955.cpp ts956.cpp ts957.cpp ts958.cpp ts959.cpp ts960.cpp \
	ts961.cpp ts962.cpp ts963.cpp ts964.cpp ts965.cpp ts966.cpp ts967.cpp ts968.cpp ts969.cpp ts970.cpp \
	ts971.cpp ts972.cpp ts973.cpp ts974.cpp ts975.cpp ts976.cpp ts977.cpp ts978.cpp ts979.cpp ts980.cpp \
	ts981.cpp ts982.cpp ts983.cpp ts984.cpp ts985.cpp ts986.cpp ts987.cpp ts988.cpp ts989.cpp ts990.cpp \
	ts991.cpp ts992.cpp ts993.cpp ts994.cpp ts995.cpp ts996.cpp ts997.cpp ts998.cpp ts999.cpp ts1000.cpp

RANDFILES=ts901.rand ts902.rand ts903.rand ts904.rand ts905.rand ts906.rand ts907.rand ts908.rand ts909.rand ts910.rand \
	ts911.rand ts912.rand ts913.rand ts914.rand ts915.rand ts916.rand ts917.rand ts918.rand ts919.rand ts920.rand \
	ts921.rand ts922.rand ts923.rand ts924.rand ts925.rand ts926.rand ts927.rand ts928.rand ts929.rand ts930.rand \
	ts931.rand ts932.rand ts933.rand ts934.rand ts935.rand ts936.rand ts937.rand ts938.rand ts939.rand ts940.rand \
	ts941.rand ts942.rand ts943.rand ts944.rand ts945.rand ts946.rand ts947.rand ts948.rand ts949.rand ts950.rand \
	ts951.rand ts952.rand ts953.rand ts954.rand ts955.rand ts956.rand ts957.rand ts958.rand ts959.rand ts960.rand \
	ts961.rand ts962.rand ts963.rand ts964.rand ts965.rand ts966.rand ts967.rand ts968.rand ts969.rand ts970.rand \
	ts971.rand ts972.rand ts973.rand ts974.rand ts975.rand ts976.rand ts977.rand ts978.rand ts979.rand ts980.rand \
	ts981.rand ts982.rand ts983.rand ts984.rand ts985.rand ts986.rand ts987.rand ts988.rand ts989.rand ts990.rand \
	ts991.rand ts992.rand ts993.rand ts994.rand ts995.rand ts996.rand ts997.rand ts998.rand ts999.rand ts1000.rand

EXFILES=ts901 ts902 ts903 ts904 ts905 ts906 ts907 ts908 ts909 ts910 \
	ts911 ts912 ts913 ts914 ts915 ts916 ts917 ts918 ts919 ts920 \
	ts921 ts922 ts923 ts924 ts925 ts926 ts927 ts928 ts929 ts930 \
	ts931 ts932 ts933 ts934 ts935 ts936 ts937 ts938 ts939 ts940 \
	ts941 ts942 ts943 ts944 ts945 ts946 ts947 ts948 ts949 ts950 \
	ts951 ts952 ts953 ts954 ts955 ts956 ts957 ts958 ts959 ts960 \
	ts961 ts962 ts963 ts964 ts965 ts966 ts967 ts968 ts969 ts970 \
	ts971 ts972 ts973 ts974 ts975 ts976 ts977 ts978 ts979 ts980 \
	ts981 ts982 ts983 ts984 ts985 ts986 ts987 ts988 ts989 ts990 \
	ts991 ts992 ts993 ts994 ts995 ts996 ts997 ts998 ts999 ts1000

OUTFILES=ts901.out ts902.out ts903.out ts904.out ts905.out ts906.out ts907.out ts908.out ts909.out ts910.out \
	ts911.out ts912.out ts913.out ts914.out ts915.out ts916.out ts917.out ts918.out ts919.out ts920.out \
	ts921.out ts922.out ts923.out ts924.out ts925.out ts926.out ts927.out ts928.out ts929.out ts930.out \
	ts931.out ts932.out ts933.out ts934.out ts935.out ts936.out ts937.out ts938.out ts939.out ts940.out \
	ts941.out ts942.out ts943.out ts944.out ts945.out ts946.out ts947.out ts948.out ts949.out ts950.out \
	ts951.out ts952.out ts953.out ts954.out ts955.out ts956.out ts957.out ts958.out ts959.out ts960.out \
	ts961.out ts962.out ts963.out ts964.out ts965.out ts966.out ts967.out ts968.out ts969.out ts970.out \
	ts971.out ts972.out ts973.out ts974.out ts975.out ts976.out ts977.out ts978.out ts979.out ts980.out \
	ts981.out ts982.out ts983.out ts984.out ts985.out ts986.out ts987.out ts988.out ts989.out ts990.out \
	ts991.out ts992.out ts993.out ts994.out ts995.out ts996.out ts997.out ts998.out ts999.out ts1000.out

all: $(EXFILES)

all.out: $(OUTFILES)
	touch all.out

ts901: ts901.dgl
	dgl <ts901.dgl >ts901.cpp
	$(CC) $(CFLAGS) ts901.cpp -o ts901

ts901.out: ts901
	ts901 >ts901.out


ts902: ts902.dgl
	dgl <ts902.dgl >ts902.cpp
	$(CC) $(CFLAGS) ts902.cpp -o ts902

ts902.out: ts902
	ts902 >ts902.out


ts903: ts903.dgl
	dgl <ts903.dgl >ts903.cpp
	$(CC) $(CFLAGS) ts903.cpp -o ts903

ts903.out: ts903
	ts903 >ts903.out


ts904: ts904.dgl
	dgl <ts904.dgl >ts904.cpp
	$(CC) $(CFLAGS) ts904.cpp -o ts904

ts904.out: ts904
	ts904 >ts904.out


ts905: ts905.dgl
	dgl <ts905.dgl >ts905.cpp
	$(CC) $(CFLAGS) ts905.cpp -o ts905

ts905.out: ts905
	ts905 >ts905.out


ts906: ts906.dgl
	dgl <ts906.dgl >ts906.cpp
	$(CC) $(CFLAGS) ts906.cpp -o ts906

ts906.out: ts906
	ts906 >ts906.out


ts907: ts907.dgl
	dgl <ts907.dgl >ts907.cpp
	$(CC) $(CFLAGS) ts907.cpp -o ts907

ts907.out: ts907
	ts907 >ts907.out


ts908: ts908.dgl
	dgl <ts908.dgl >ts908.cpp
	$(CC) $(CFLAGS) ts908.cpp -o ts908

ts908.out: ts908
	ts908 >ts908.out


ts909: ts909.dgl
	dgl <ts909.dgl >ts909.cpp
	$(CC) $(CFLAGS) ts909.cpp -o ts909

ts909.out: ts909
	ts909 >ts909.out


ts910: ts910.dgl
	dgl <ts910.dgl >ts910.cpp
	$(CC) $(CFLAGS) ts910.cpp -o ts910

ts910.out: ts910
	ts910 >ts910.out


ts911: ts911.dgl
	dgl <ts911.dgl >ts911.cpp
	$(CC) $(CFLAGS) ts911.cpp -o ts911

ts911.out: ts911
	ts911 >ts911.out


ts912: ts912.dgl
	dgl <ts912.dgl >ts912.cpp
	$(CC) $(CFLAGS) ts912.cpp -o ts912

ts912.out: ts912
	ts912 >ts912.out


ts913: ts913.dgl
	dgl <ts913.dgl >ts913.cpp
	$(CC) $(CFLAGS) ts913.cpp -o ts913

ts913.out: ts913
	ts913 >ts913.out


ts914: ts914.dgl
	dgl <ts914.dgl >ts914.cpp
	$(CC) $(CFLAGS) ts914.cpp -o ts914

ts914.out: ts914
	ts914 >ts914.out


ts915: ts915.dgl
	dgl <ts915.dgl >ts915.cpp
	$(CC) $(CFLAGS) ts915.cpp -o ts915

ts915.out: ts915
	ts915 >ts915.out


ts916: ts916.dgl
	dgl <ts916.dgl >ts916.cpp
	$(CC) $(CFLAGS) ts916.cpp -o ts916

ts916.out: ts916
	ts916 >ts916.out


ts917: ts917.dgl
	dgl <ts917.dgl >ts917.cpp
	$(CC) $(CFLAGS) ts917.cpp -o ts917

ts917.out: ts917
	ts917 >ts917.out


ts918: ts918.dgl
	dgl <ts918.dgl >ts918.cpp
	$(CC) $(CFLAGS) ts918.cpp -o ts918

ts918.out: ts918
	ts918 >ts918.out


ts919: ts919.dgl
	dgl <ts919.dgl >ts919.cpp
	$(CC) $(CFLAGS) ts919.cpp -o ts919

ts919.out: ts919
	ts919 >ts919.out


ts920: ts920.dgl
	dgl <ts920.dgl >ts920.cpp
	$(CC) $(CFLAGS) ts920.cpp -o ts920

ts920.out: ts920
	ts920 >ts920.out


ts921: ts921.dgl
	dgl <ts921.dgl >ts921.cpp
	$(CC) $(CFLAGS) ts921.cpp -o ts921

ts921.out: ts921
	ts921 >ts921.out


ts922: ts922.dgl
	dgl <ts922.dgl >ts922.cpp
	$(CC) $(CFLAGS) ts922.cpp -o ts922

ts922.out: ts922
	ts922 >ts922.out


ts923: ts923.dgl
	dgl <ts923.dgl >ts923.cpp
	$(CC) $(CFLAGS) ts923.cpp -o ts923

ts923.out: ts923
	ts923 >ts923.out


ts924: ts924.dgl
	dgl <ts924.dgl >ts924.cpp
	$(CC) $(CFLAGS) ts924.cpp -o ts924

ts924.out: ts924
	ts924 >ts924.out


ts925: ts925.dgl
	dgl <ts925.dgl >ts925.cpp
	$(CC) $(CFLAGS) ts925.cpp -o ts925

ts925.out: ts925
	ts925 >ts925.out


ts926: ts926.dgl
	dgl <ts926.dgl >ts926.cpp
	$(CC) $(CFLAGS) ts926.cpp -o ts926

ts926.out: ts926
	ts926 >ts926.out


ts927: ts927.dgl
	dgl <ts927.dgl >ts927.cpp
	$(CC) $(CFLAGS) ts927.cpp -o ts927

ts927.out: ts927
	ts927 >ts927.out


ts928: ts928.dgl
	dgl <ts928.dgl >ts928.cpp
	$(CC) $(CFLAGS) ts928.cpp -o ts928

ts928.out: ts928
	ts928 >ts928.out


ts929: ts929.dgl
	dgl <ts929.dgl >ts929.cpp
	$(CC) $(CFLAGS) ts929.cpp -o ts929

ts929.out: ts929
	ts929 >ts929.out


ts930: ts930.dgl
	dgl <ts930.dgl >ts930.cpp
	$(CC) $(CFLAGS) ts930.cpp -o ts930

ts930.out: ts930
	ts930 >ts930.out


ts931: ts931.dgl
	dgl <ts931.dgl >ts931.cpp
	$(CC) $(CFLAGS) ts931.cpp -o ts931

ts931.out: ts931
	ts931 >ts931.out


ts932: ts932.dgl
	dgl <ts932.dgl >ts932.cpp
	$(CC) $(CFLAGS) ts932.cpp -o ts932

ts932.out: ts932
	ts932 >ts932.out


ts933: ts933.dgl
	dgl <ts933.dgl >ts933.cpp
	$(CC) $(CFLAGS) ts933.cpp -o ts933

ts933.out: ts933
	ts933 >ts933.out


ts934: ts934.dgl
	dgl <ts934.dgl >ts934.cpp
	$(CC) $(CFLAGS) ts934.cpp -o ts934

ts934.out: ts934
	ts934 >ts934.out


ts935: ts935.dgl
	dgl <ts935.dgl >ts935.cpp
	$(CC) $(CFLAGS) ts935.cpp -o ts935

ts935.out: ts935
	ts935 >ts935.out


ts936: ts936.dgl dr936.cpp
	dgl <ts936.dgl >ts936.cpp
	$(CC) $(CFLAGS) ts936.cpp dr936.cpp -o ts936

ts936.out: ts936
	ts936 >ts936.out


ts937: ts937.dgl dr937.cpp
	dgl <ts937.dgl >ts937.cpp
	$(CC) $(CFLAGS) ts937.cpp dr937.cpp -o ts937

ts937.out: ts937
	ts937 >ts937.out


ts938: ts938.dgl dr938.cpp
	dgl <ts938.dgl >ts938.cpp
	$(CC) $(CFLAGS) ts938.cpp dr938.cpp -o ts938

ts938.out: ts938
	ts938 >ts938.out


ts939: ts939.dgl dr939.cpp
	dgl <ts939.dgl >ts939.cpp
	$(CC) $(CFLAGS) ts939.cpp dr939.cpp -o ts939

ts939.out: ts939
	ts939 >ts939.out


ts940: ts940.dgl
	dgl <ts940.dgl >ts940.cpp
	$(CC) $(CFLAGS) ts940.cpp -o ts940

ts940.out: ts940
	ts940 >ts940.out


ts941: ts941.dgl dr941.cpp
	dgl <ts941.dgl >ts941.cpp
	$(CC) $(CFLAGS) ts941.cpp dr941.cpp -o ts941

ts941.out: ts941
	ts941 >ts941.out


ts942: ts942.dgl
	dgl <ts942.dgl >ts942.cpp
	$(CC) $(CFLAGS) ts942.cpp -o ts942

ts942.out: ts942
	ts942 >ts942.out


ts943: ts943.dgl
	dgl <ts943.dgl >ts943.cpp
	$(CC) $(CFLAGS) ts943.cpp -o ts943

ts943.out: ts943
	ts943 >ts943.out


ts944: ts944.dgl
	-dgl <ts944.dgl >ts944.cpp
	touch ts944

ts944.out: ts944
	touch ts944.out


ts945: ts945.dgl
	-dgl <ts945.dgl >ts945.cpp
	touch ts945

ts945.out: ts945
	touch ts945.out


ts946: ts946.dgl
	-dgl <ts946.dgl >ts946.cpp
	touch ts946

ts946.out: ts946
	touch ts946.out


ts947: ts947.dgl
	-dgl <ts947.dgl >ts947.cpp
	touch ts947

ts947.out: ts947
	touch ts947.out


ts948: ts948.dgl
	dgl <ts948.dgl >ts948.cpp
	$(CC) $(CFLAGS) ts948.cpp -o ts948

ts948.out: ts948
	ts948 >ts948.out


ts949: ts949.dgl
	dgl <ts949.dgl >ts949.cpp
	$(CC) $(CFLAGS) ts949.cpp -o ts949

ts949.out: ts949
	ts949 >ts949.out


ts950: ts950.dgl
	-dgl <ts950.dgl >ts950.cpp
	touch ts950

ts950.out: ts950
	touch ts950.out


ts951: ts951.dgl
	-dgl <ts951.dgl >ts951.cpp
	touch ts951

ts951.out: ts951
	touch ts951.out


ts952: ts952.dgl
	-dgl <ts952.dgl >ts952.cpp
	touch ts952

ts952.out: ts952
	touch ts952.out


ts953: ts953.dgl
	-dgl <ts953.dgl >ts953.cpp
	touch ts953

ts953.out: ts953
	touch ts953.out


ts954: ts954.dgl
	-dgl <ts954.dgl >ts954.cpp
	$(CC) $(CFLAGS) ts954.cpp -o ts954

ts954.out: ts954
	ts954 >ts954.out


ts955: ts955.dgl
	dgl <ts955.dgl >ts955.cpp
	$(CC) $(CFLAGS) ts955.cpp -o ts955

ts955.out: ts955
	ts955 >ts955.out


ts956: ts956.dgl
	-dgl <ts956.dgl >ts956.cpp
	touch ts956

ts956.out: ts956
	touch ts956.out


ts957: ts957.dgl
	-dgl <ts957.dgl >ts957.cpp
	touch ts957

ts957.out: ts957
	touch ts957.out


ts958: ts958.dgl
	-dgl <ts958.dgl >ts958.cpp
	touch ts958

ts958.out: ts958
	touch ts958.out


ts959: ts959.dgl
	-dgl <ts959.dgl >ts959.cpp
	touch ts959

ts959.out: ts959
	touch ts959.out


ts960: ts960.dgl
	dgl <ts960.dgl >ts960.cpp
	$(CC) $(CFLAGS) ts960.cpp -o ts960

ts960.out: ts960
	ts960 >ts960.out


ts961: ts961.dgl
	dgl <ts961.dgl >ts961.cpp
	$(CC) $(CFLAGS) ts961.cpp -o ts961

ts961.out: ts961
	ts961 >ts961.out


ts962: ts962.dgl
	-dgl <ts962.dgl >ts962.cpp
	touch ts962

ts962.out: ts962
	touch ts962.out


ts963: ts963.dgl
	-dgl <ts963.dgl >ts963.cpp
	touch ts963

ts963.out: ts963
	touch ts963.out


ts964: ts964.dgl
	-dgl <ts964.dgl >ts964.cpp
	touch ts964

ts964.out: ts964
	touch ts964.out


ts965: ts965.dgl
	-dgl <ts965.dgl >ts965.cpp
	touch ts965

ts965.out: ts965
	touch ts965.out


ts966: ts966.dgl
	dgl <ts966.dgl >ts966.cpp
	$(CC) $(CFLAGS) ts966.cpp -o ts966

ts966.out: ts966
	ts966 >ts966.out


ts967: ts967.dgl
	dgl <ts967.dgl >ts967.cpp
	$(CC) $(CFLAGS) ts967.cpp -o ts967

ts967.out: ts967
	ts967 >ts967.out


ts968: ts968.dgl
	dgl <ts968.dgl >ts968.cpp
	$(CC) $(CFLAGS) ts968.cpp -o ts968

ts968.out: ts968
	ts968 >ts968.out


ts969: ts969.dgl
	dgl <ts969.dgl >ts969.cpp
	$(CC) $(CFLAGS) ts969.cpp -o ts969

ts969.out: ts969
	ts969 >ts969.out


ts970: ts970.dgl
	dgl <ts970.dgl >ts970.cpp
	$(CC) $(CFLAGS) ts970.cpp -o ts970

ts970.out: ts970
	ts970 >ts970.out


ts971: ts971.dgl
	dgl <ts971.dgl >ts971.cpp
	$(CC) $(CFLAGS) ts971.cpp -o ts971

ts971.out: ts971
	ts971 >ts971.out


ts972: ts972.dgl
	dgl <ts972.dgl >ts972.cpp
	$(CC) $(CFLAGS) ts972.cpp -o ts972

ts972.out: ts972
	ts972 >ts972.out


ts973: ts973.dgl
	dgl <ts973.dgl >ts973.cpp
	$(CC) $(CFLAGS) ts973.cpp -o ts973

ts973.out: ts973
	-ts973 >ts973.out


ts974: ts974.dgl
	dgl <ts974.dgl >ts974.cpp
	$(CC) $(CFLAGS) ts974.cpp -o ts974

ts974.out: ts974
	ts974 >ts974.out


ts975: ts975.dgl
	dgl <ts975.dgl >ts975.cpp
	$(CC) $(CFLAGS) ts975.cpp -o ts975

ts975.out: ts975
	ts975 >ts975.out


ts976: ts976.dgl
	dgl <ts976.dgl >ts976.cpp
	$(CC) $(CFLAGS) ts976.cpp -o ts976

ts976.out: ts976
	ts976 >ts976.out


ts977: ts977.dgl
	dgl <ts977.dgl >ts977.cpp
	$(CC) $(CFLAGS) ts977.cpp -o ts977

ts977.out: ts977
	ts977 >ts977.out


ts978: ts978.dgl
	dgl <ts978.dgl >ts978.cpp
	$(CC) $(CFLAGS) ts978.cpp -o ts978

ts978.out: ts978
	ts978 >ts978.out


ts979: ts979.dgl
	dgl <ts979.dgl >ts979.cpp
	$(CC) $(CFLAGS) ts979.cpp -o ts979

ts979.out: ts979
	ts979 >ts979.out


ts980: ts980.dgl
	dgl <ts980.dgl >ts980.cpp
	$(CC) $(CFLAGS) ts980.cpp -o ts980

ts980.out: ts980
	ts980 >ts980.out


ts981: ts981.dgl
	dgl <ts981.dgl >ts981.cpp
	$(CC) $(CFLAGS) ts981.cpp -o ts981

ts981.out: ts981
	ts981 >ts981.out


ts982: ts982.dgl
	dgl <ts982.dgl >ts982.cpp
	$(CC) $(CFLAGS) ts982.cpp -o ts982

ts982.out: ts982
	ts982 >ts982.out


ts983: ts983.dgl
	dgl <ts983.dgl >ts983.cpp
	$(CC) $(CFLAGS) ts983.cpp -o ts983

ts983.out: ts983
	ts983 >ts983.out


ts984: ts984.dgl
	dgl <ts984.dgl >ts984.cpp
	$(CC) $(CFLAGS) ts984.cpp -o ts984

ts984.out: ts984
	ts984 >ts984.out


ts985: ts985.dgl
	dgl <ts985.dgl >ts985.cpp
	$(CC) $(CFLAGS) ts985.cpp -o ts985

ts985.out: ts985
	ts985 >ts985.out


ts986: ts986.dgl
	dgl <ts986.dgl >ts986.cpp
	$(CC) $(CFLAGS) ts986.cpp -o ts986

ts986.out: ts986
	ts986 >ts986.out


ts987: ts987.dgl
	dgl <ts987.dgl >ts987.cpp
	$(CC) $(CFLAGS) ts987.cpp -o ts987

ts987.out: ts987
	ts987 >ts987.out


ts988: ts988.dgl
	dgl <ts988.dgl >ts988.cpp
	$(CC) $(CFLAGS) ts988.cpp -o ts988

ts988.out: ts988
	ts988 >ts988.out


ts989: ts989.dgl
	dgl <ts989.dgl >ts989.cpp
	$(CC) $(CFLAGS) ts989.cpp -o ts989

ts989.out: ts989
	ts989 >ts989.out


ts990: ts990.dgl
	dgl <ts990.dgl >ts990.cpp
	$(CC) $(CFLAGS) ts990.cpp -o ts990

ts990.out: ts990
	ts990 >ts990.out


ts991: ts991.dgl
	dgl <ts991.dgl >ts991.cpp
	$(CC) $(CFLAGS) ts991.cpp -o ts991

ts991.out: ts991
	ts991 >ts991.out


ts992: ts992.dgl
	dgl <ts992.dgl >ts992.cpp
	$(CC) $(CFLAGS) ts992.cpp -o ts992

ts992.out: ts992
	ts992 >ts992.out


ts993: ts993.dgl
	dgl <ts993.dgl >ts993.cpp
	$(CC) $(CFLAGS) ts993.cpp -o ts993

ts993.out: ts993
	ts993 >ts993.out


ts994: ts994.dgl
	dgl <ts994.dgl >ts994.cpp
	$(CC) $(CFLAGS) ts994.cpp -o ts994

ts994.out: ts994
	ts994 >ts994.out


ts995: ts995.dgl
	dgl <ts995.dgl >ts995.cpp
	$(CC) $(CFLAGS) ts995.cpp -o ts995

ts995.out: ts995
	-ts995 >ts995.out


ts996: ts996.dgl
	dgl <ts996.dgl >ts996.cpp
	$(CC) $(CFLAGS) ts996.cpp -o ts996

ts996.out: ts996
	-ts996 >ts996.out


ts997: ts997.dgl
	dgl <ts997.dgl >ts997.cpp
	$(CC) $(CFLAGS) ts997.cpp -o ts997

ts997.out: ts997
	-ts997 >ts997.out


ts998: ts998.dgl
	dgl <ts998.dgl >ts998.cpp
	$(CC) $(CFLAGS) ts998.cpp -o ts998

ts998.out: ts998
	-ts998 >ts998.out


ts999: ts999.dgl
	dgl <ts999.dgl >ts999.cpp
	$(CC) $(CFLAGS) ts999.cpp -o ts999

ts999.out: ts999
	ts999 >ts999.out


ts1000: ts1000.dgl
	dgl <ts1000.dgl >ts1000.cpp
	$(CC) $(CFLAGS) ts1000.cpp -o ts1000

ts1000.out: ts1000
	ts1000 >ts1000.out



clean:
	rm -f $(OUTFILES)
	rm -f $(CFILES)
	rm -f $(RANDFILES)
	rm -f $(EXFILES)
	rm -f all.out
	rm -f core

.SUFFIXES: .dgl
