examples/Makefile.in
changeset 354 396ac66670ad
parent 329 7717252e3ed9
child 373 fc32e8a796ae
equal deleted inserted replaced
353:ee08ce0366a7 354:396ac66670ad
    20 # License along with this library; if not, write to the Free Software
    20 # License along with this library; if not, write to the Free Software
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    21 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    22 # 
    22 # 
    23 
    23 
    24 TARGET = SUB_TARGET
    24 TARGET = SUB_TARGET
       
    25 WX = SUB_WX
    25 
    26 
    26 all:
    27 ifeq ($(TARGET),win32)
    27 ifeq ($(TARGET),hc12)
    28 	BLD_TEST=1
    28 	$(MAKE) -C gene_SYNC_HCS12 $@
    29 endif
       
    30 ifeq ($(TARGET),unix)
       
    31 	BLD_TEST=1
    29 endif
    32 endif
    30 
    33 
    31 ifeq ($(TARGET),unix)
    34 ifeq ($(WX),1)
    32 	$(MAKE) -C TestMasterSlave $@
    35 define build_command_seq_wx
    33 	$(MAKE) -C DS401_Master $@
    36 	$(MAKE) -C DS401_Master $@
    34 	$(MAKE) -C DS401_Slave_Gui $@
    37 	$(MAKE) -C DS401_Slave_Gui $@
    35 	$(MAKE) -C TestMasterMicroMod $@
    38 endef
    36 endif
    39 endif
    37 
    40 
    38 ifeq ($(TARGET),win32)
    41 ifdef BLD_TEST
       
    42 define build_command_seq
    39 	$(MAKE) -C TestMasterSlave $@
    43 	$(MAKE) -C TestMasterSlave $@
    40 	$(MAKE) -C DS401_Master $@
       
    41 	$(MAKE) -C DS401_Slave_Gui $@
       
    42 	$(MAKE) -C TestMasterMicroMod $@
    44 	$(MAKE) -C TestMasterMicroMod $@
       
    45 	$(build_command_seq_wx)
       
    46 endef
    43 endif
    47 endif
    44 
    48 
    45 clean:
       
    46 ifeq ($(TARGET),hc12)
    49 ifeq ($(TARGET),hc12)
       
    50 define build_command_seq
    47 	$(MAKE) -C gene_SYNC_HCS12 $@
    51 	$(MAKE) -C gene_SYNC_HCS12 $@
    48 endif
    52 endef
    49 
       
    50 ifeq ($(TARGET),unix)
       
    51 	$(MAKE) -C TestMasterSlave $@
       
    52 	$(MAKE) -C DS401_Master $@
       
    53 	$(MAKE) -C DS401_Slave_Gui $@
       
    54 	$(MAKE) -C TestMasterMicroMod $@
       
    55 endif
       
    56 
       
    57 ifeq ($(TARGET),win32)
       
    58 	$(MAKE) -C TestMasterSlave $@
       
    59 	$(MAKE) -C DS401_Master $@
       
    60 	$(MAKE) -C DS401_Slave_Gui $@
       
    61 	$(MAKE) -C TestMasterMicroMod $@
       
    62 endif
    53 endif
    63 
    54 
    64 
    55 
       
    56 all:
       
    57 	$(build_command_seq)
       
    58 
       
    59 clean:
       
    60 	$(build_command_seq)
       
    61 
    65 mrproper: clean
    62 mrproper: clean
    66 ifeq ($(TARGET),hc12)
    63 	$(build_command_seq)
    67 	$(MAKE) -C gene_SYNC_HCS12 $@
       
    68 endif
       
    69 
       
    70 install:
       
    71 ifeq ($(TARGET),unix)
       
    72 	$(MAKE) -C TestMasterSlave $@
       
    73 	$(MAKE) -C DS401_Master $@
       
    74 	$(MAKE) -C DS401_Slave_Gui $@
       
    75 	$(MAKE) -C TestMasterMicroMod $@
       
    76 endif
       
    77 
       
    78 uninstall:
       
    79 ifeq ($(TARGET),unix)
       
    80 	$(MAKE) -C TestMasterSlave $@
       
    81 	$(MAKE) -C DS401_Master $@
       
    82 	$(MAKE) -C DS401_Slave_Gui $@
       
    83 	$(MAKE) -C TestMasterMicroMod $@
       
    84 endif