SRCS =  \
       ../src/grph1_csgi.c ../src/grph1_scpack.c ../src/grph1_sgpack.c \
       ../src/grph1_slpack.c ../src/grph1_stpack.c ../src/grph1_swpack.c \
       ../src/grph2_grpack.c ../src/grph2_ucpack.c ../src/grph2_udpack.c \
       ../src/grph2_uepack.c ../src/grph2_ugpack.c ../src/grph2_uhpack.c \
       ../src/grph2_ulpack.c ../src/grph2_umpack.c ../src/grph2_uspack.c \
       ../src/grph2_uupack.c ../src/grph2_uvpack.c ../src/grph2_uwpack.c \
       ../src/grph2_uxpack.c ../src/grph2_uypack.c ../src/grph2_uzpack.c \
       ../src/math1_blklib.c ../src/math1_chrlib.c ../src/math1_fnclib.c \
       ../src/math1_gnmlib.c ../src/math1_ifalib.c ../src/math1_indxlib.c \
       ../src/math1_intlib.c ../src/math1_lrllib.c ../src/math1_oslib.c \
       ../src/math1_rfalib.c ../src/math1_rfblib.c ../src/math1_sublib.c \
       ../src/math1_syslib.c ../src/math1_vialib.c ../src/math1_viblib.c \
       ../src/math1_vralib.c ../src/math1_vrblib.c ../src/math1_xfclib.c \
       ../src/math2_fftlib.c ../src/math2_intrlib.c ../src/math2_rnmlib.c \
       ../src/math2_shtlib.c ../src/math2_vstlib.c ../src/misc1_chnlib.c \
       ../src/misc1_datelib.c ../src/misc1_fmtlib.c ../src/misc1_misclib.c \
       ../src/misc1_randlib.c ../src/misc1_timelib.c
#       ../src/math2_odelib.c

all: $(SRCS)

../src/grph1_csgi.c: grph1_csgi.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_csgi.c ; \
	ruby proto2c.rb proto/grph1_csgi.fp >> src/grph1_csgi.c ; \
	ruby cproto2init.rb src/grph1_csgi.c >> src/grph1_csgi.c ; \
	cd proto

../src/grph1_scpack.c: grph1_scpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_scpack.c ; \
	ruby proto2c.rb proto/grph1_scpack.fp >> src/grph1_scpack.c ; \
	ruby cproto2init.rb src/grph1_scpack.c >> src/grph1_scpack.c ; \
	cd proto

../src/grph1_sgpack.c: grph1_sgpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_sgpack.c ; \
	ruby proto2c.rb proto/grph1_sgpack.fp >> src/grph1_sgpack.c ; \
	ruby cproto2init.rb src/grph1_sgpack.c >> src/grph1_sgpack.c ; \
	cd proto

../src/grph1_slpack.c: grph1_slpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_slpack.c ; \
	ruby proto2c.rb proto/grph1_slpack.fp >> src/grph1_slpack.c ; \
	ruby cproto2init.rb src/grph1_slpack.c >> src/grph1_slpack.c ; \
	cd proto

../src/grph1_stpack.c: grph1_stpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_stpack.c ; \
	ruby proto2c.rb proto/grph1_stpack.fp >> src/grph1_stpack.c ; \
	ruby cproto2init.rb src/grph1_stpack.c >> src/grph1_stpack.c ; \
	cd proto

../src/grph1_swpack.c: grph1_swpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph1_swpack.c ; \
	ruby proto2c.rb proto/grph1_swpack.fp >> src/grph1_swpack.c ; \
	ruby cproto2init.rb src/grph1_swpack.c >> src/grph1_swpack.c ; \
	cd proto

../src/grph2_grpack.c: grph2_grpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_grpack.c ; \
	ruby proto2c.rb proto/grph2_grpack.fp >> src/grph2_grpack.c ; \
	ruby cproto2init.rb src/grph2_grpack.c >> src/grph2_grpack.c ; \
	cd proto

../src/grph2_ucpack.c: grph2_ucpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_ucpack.c ; \
	ruby proto2c.rb proto/grph2_ucpack.fp >> src/grph2_ucpack.c ; \
	ruby cproto2init.rb src/grph2_ucpack.c >> src/grph2_ucpack.c ; \
	cd proto

../src/grph2_udpack.c: grph2_udpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_udpack.c ; \
	ruby proto2c.rb proto/grph2_udpack.fp >> src/grph2_udpack.c ; \
	ruby cproto2init.rb src/grph2_udpack.c >> src/grph2_udpack.c ; \
	cd proto

../src/grph2_uepack.c: grph2_uepack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uepack.c ; \
	ruby proto2c.rb proto/grph2_uepack.fp >> src/grph2_uepack.c ; \
	ruby cproto2init.rb src/grph2_uepack.c >> src/grph2_uepack.c ; \
	cd proto

../src/grph2_ugpack.c: grph2_ugpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_ugpack.c ; \
	ruby proto2c.rb proto/grph2_ugpack.fp >> src/grph2_ugpack.c ; \
	ruby cproto2init.rb src/grph2_ugpack.c >> src/grph2_ugpack.c ; \
	cd proto

../src/grph2_uhpack.c: grph2_uhpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uhpack.c ; \
	ruby proto2c.rb proto/grph2_uhpack.fp >> src/grph2_uhpack.c ; \
	ruby cproto2init.rb src/grph2_uhpack.c >> src/grph2_uhpack.c ; \
	cd proto

../src/grph2_ulpack.c: grph2_ulpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_ulpack.c ; \
	ruby proto2c.rb proto/grph2_ulpack.fp >> src/grph2_ulpack.c ; \
	ruby cproto2init.rb src/grph2_ulpack.c >> src/grph2_ulpack.c ; \
	cd proto

../src/grph2_umpack.c: grph2_umpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_umpack.c ; \
	ruby proto2c.rb proto/grph2_umpack.fp >> src/grph2_umpack.c ; \
	ruby cproto2init.rb src/grph2_umpack.c >> src/grph2_umpack.c ; \
	cd proto

../src/grph2_uspack.c: grph2_uspack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uspack.c ; \
	ruby proto2c.rb proto/grph2_uspack.fp >> src/grph2_uspack.c ; \
	ruby cproto2init.rb src/grph2_uspack.c >> src/grph2_uspack.c ; \
	cd proto

../src/grph2_uupack.c: grph2_uupack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uupack.c ; \
	ruby proto2c.rb proto/grph2_uupack.fp >> src/grph2_uupack.c ; \
	ruby cproto2init.rb src/grph2_uupack.c >> src/grph2_uupack.c ; \
	cd proto

../src/grph2_uvpack.c: grph2_uvpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uvpack.c ; \
	ruby proto2c.rb proto/grph2_uvpack.fp >> src/grph2_uvpack.c ; \
	ruby cproto2init.rb src/grph2_uvpack.c >> src/grph2_uvpack.c ; \
	cd proto

../src/grph2_uwpack.c: grph2_uwpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uwpack.c ; \
	ruby proto2c.rb proto/grph2_uwpack.fp >> src/grph2_uwpack.c ; \
	ruby cproto2init.rb src/grph2_uwpack.c >> src/grph2_uwpack.c ; \
	cd proto

../src/grph2_uxpack.c: grph2_uxpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uxpack.c ; \
	ruby proto2c.rb proto/grph2_uxpack.fp >> src/grph2_uxpack.c ; \
	ruby cproto2init.rb src/grph2_uxpack.c >> src/grph2_uxpack.c ; \
	cd proto

../src/grph2_uypack.c: grph2_uypack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uypack.c ; \
	ruby proto2c.rb proto/grph2_uypack.fp >> src/grph2_uypack.c ; \
	ruby cproto2init.rb src/grph2_uypack.c >> src/grph2_uypack.c ; \
	cd proto

../src/grph2_uzpack.c: grph2_uzpack.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/grph2_uzpack.c ; \
	ruby proto2c.rb proto/grph2_uzpack.fp >> src/grph2_uzpack.c ; \
	ruby cproto2init.rb src/grph2_uzpack.c >> src/grph2_uzpack.c ; \
	cd proto

../src/math1_blklib.c: math1_blklib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_blklib.c ; \
	ruby proto2c.rb proto/math1_blklib.fp >> src/math1_blklib.c ; \
	ruby cproto2init.rb src/math1_blklib.c >> src/math1_blklib.c ; \
	cd proto

../src/math1_chrlib.c: math1_chrlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_chrlib.c ; \
	ruby proto2c.rb proto/math1_chrlib.fp >> src/math1_chrlib.c ; \
	ruby cproto2init.rb src/math1_chrlib.c >> src/math1_chrlib.c ; \
	cd proto

../src/math1_fnclib.c: math1_fnclib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_fnclib.c ; \
	ruby proto2c.rb proto/math1_fnclib.fp >> src/math1_fnclib.c ; \
	ruby cproto2init.rb src/math1_fnclib.c >> src/math1_fnclib.c ; \
	cd proto

../src/math1_gnmlib.c: math1_gnmlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_gnmlib.c ; \
	ruby proto2c.rb proto/math1_gnmlib.fp >> src/math1_gnmlib.c ; \
	ruby cproto2init.rb src/math1_gnmlib.c >> src/math1_gnmlib.c ; \
	cd proto

../src/math1_ifalib.c: math1_ifalib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_ifalib.c ; \
	ruby proto2c.rb proto/math1_ifalib.fp >> src/math1_ifalib.c ; \
	ruby cproto2init.rb src/math1_ifalib.c >> src/math1_ifalib.c ; \
	cd proto

../src/math1_indxlib.c: math1_indxlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_indxlib.c ; \
	ruby proto2c.rb proto/math1_indxlib.fp >> src/math1_indxlib.c ; \
	ruby cproto2init.rb src/math1_indxlib.c >> src/math1_indxlib.c ; \
	cd proto

../src/math1_intlib.c: math1_intlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_intlib.c ; \
	ruby proto2c.rb proto/math1_intlib.fp >> src/math1_intlib.c ; \
	ruby cproto2init.rb src/math1_intlib.c >> src/math1_intlib.c ; \
	cd proto

../src/math1_lrllib.c: math1_lrllib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_lrllib.c ; \
	ruby proto2c.rb proto/math1_lrllib.fp >> src/math1_lrllib.c ; \
	ruby cproto2init.rb src/math1_lrllib.c >> src/math1_lrllib.c ; \
	cd proto

../src/math1_oslib.c: math1_oslib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_oslib.c ; \
	ruby proto2c.rb proto/math1_oslib.fp >> src/math1_oslib.c ; \
	ruby cproto2init.rb src/math1_oslib.c >> src/math1_oslib.c ; \
	cd proto

../src/math1_rfalib.c: math1_rfalib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_rfalib.c ; \
	ruby proto2c.rb proto/math1_rfalib.fp >> src/math1_rfalib.c ; \
	ruby cproto2init.rb src/math1_rfalib.c >> src/math1_rfalib.c ; \
	cd proto

../src/math1_rfblib.c: math1_rfblib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_rfblib.c ; \
	ruby proto2c.rb proto/math1_rfblib.fp >> src/math1_rfblib.c ; \
	ruby cproto2init.rb src/math1_rfblib.c >> src/math1_rfblib.c ; \
	cd proto

../src/math1_sublib.c: math1_sublib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_sublib.c ; \
	ruby proto2c.rb proto/math1_sublib.fp >> src/math1_sublib.c ; \
	ruby cproto2init.rb src/math1_sublib.c >> src/math1_sublib.c ; \
	cd proto

../src/math1_syslib.c: math1_syslib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_syslib.c ; \
	ruby proto2c.rb proto/math1_syslib.fp >> src/math1_syslib.c ; \
	ruby cproto2init.rb src/math1_syslib.c >> src/math1_syslib.c ; \
	cd proto

../src/math1_vialib.c: math1_vialib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_vialib.c ; \
	ruby proto2c.rb proto/math1_vialib.fp >> src/math1_vialib.c ; \
	ruby cproto2init.rb src/math1_vialib.c >> src/math1_vialib.c ; \
	cd proto

../src/math1_viblib.c: math1_viblib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_viblib.c ; \
	ruby proto2c.rb proto/math1_viblib.fp >> src/math1_viblib.c ; \
	ruby cproto2init.rb src/math1_viblib.c >> src/math1_viblib.c ; \
	cd proto

../src/math1_vralib.c: math1_vralib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_vralib.c ; \
	ruby proto2c.rb proto/math1_vralib.fp >> src/math1_vralib.c ; \
	ruby cproto2init.rb src/math1_vralib.c >> src/math1_vralib.c ; \
	cd proto

../src/math1_vrblib.c: math1_vrblib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_vrblib.c ; \
	ruby proto2c.rb proto/math1_vrblib.fp >> src/math1_vrblib.c ; \
	ruby cproto2init.rb src/math1_vrblib.c >> src/math1_vrblib.c ; \
	cd proto

../src/math1_xfclib.c: math1_xfclib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math1_xfclib.c ; \
	ruby proto2c.rb proto/math1_xfclib.fp >> src/math1_xfclib.c ; \
	ruby cproto2init.rb src/math1_xfclib.c >> src/math1_xfclib.c ; \
	cd proto

../src/math2_fftlib.c: math2_fftlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math2_fftlib.c ; \
	ruby proto2c.rb proto/math2_fftlib.fp >> src/math2_fftlib.c ; \
	ruby cproto2init.rb src/math2_fftlib.c >> src/math2_fftlib.c ; \
	cd proto

../src/math2_intrlib.c: math2_intrlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math2_intrlib.c ; \
	ruby proto2c.rb proto/math2_intrlib.fp >> src/math2_intrlib.c ; \
	ruby cproto2init.rb src/math2_intrlib.c >> src/math2_intrlib.c ; \
	cd proto

../src/math2_rnmlib.c: math2_rnmlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math2_rnmlib.c ; \
	ruby proto2c.rb proto/math2_rnmlib.fp >> src/math2_rnmlib.c ; \
	ruby cproto2init.rb src/math2_rnmlib.c >> src/math2_rnmlib.c ; \
	cd proto

../src/math2_shtlib.c: math2_shtlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math2_shtlib.c ; \
	ruby proto2c.rb proto/math2_shtlib.fp >> src/math2_shtlib.c ; \
	ruby cproto2init.rb src/math2_shtlib.c >> src/math2_shtlib.c ; \
	cd proto

../src/math2_vstlib.c: math2_vstlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/math2_vstlib.c ; \
	ruby proto2c.rb proto/math2_vstlib.fp >> src/math2_vstlib.c ; \
	ruby cproto2init.rb src/math2_vstlib.c >> src/math2_vstlib.c ; \
	cd proto

../src/misc1_chnlib.c: misc1_chnlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_chnlib.c ; \
	ruby proto2c.rb proto/misc1_chnlib.fp >> src/misc1_chnlib.c ; \
	ruby cproto2init.rb src/misc1_chnlib.c >> src/misc1_chnlib.c ; \
	cd proto

../src/misc1_datelib.c: misc1_datelib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_datelib.c ; \
	ruby proto2c.rb proto/misc1_datelib.fp >> src/misc1_datelib.c ; \
	ruby cproto2init.rb src/misc1_datelib.c >> src/misc1_datelib.c ; \
	cd proto

../src/misc1_fmtlib.c: misc1_fmtlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_fmtlib.c ; \
	ruby proto2c.rb proto/misc1_fmtlib.fp >> src/misc1_fmtlib.c ; \
	ruby cproto2init.rb src/misc1_fmtlib.c >> src/misc1_fmtlib.c ; \
	cd proto

../src/misc1_misclib.c: misc1_misclib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_misclib.c ; \
	ruby proto2c.rb proto/misc1_misclib.fp >> src/misc1_misclib.c ; \
	ruby cproto2init.rb src/misc1_misclib.c >> src/misc1_misclib.c ; \
	cd proto

../src/misc1_randlib.c: misc1_randlib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_randlib.c ; \
	ruby proto2c.rb proto/misc1_randlib.fp >> src/misc1_randlib.c ; \
	ruby cproto2init.rb src/misc1_randlib.c >> src/misc1_randlib.c ; \
	cd proto

../src/misc1_timelib.c: misc1_timelib.fp ../etc/p_header
	cd ../ ; \
	cat etc/p_header  > src/misc1_timelib.c ; \
	ruby proto2c.rb proto/misc1_timelib.fp >> src/misc1_timelib.c ; \
	ruby cproto2init.rb src/misc1_timelib.c >> src/misc1_timelib.c ; \
	cd proto

clean:
	$(RM) $(SRCS) ; 

