How to write a C program which contains swtich case that decides which progam to compile amoung two other c programs

42 Views Asked by At

i have two c programs

1. main_core.c at directory contiki/mqtt-sn-contiki_examples

2. coap_server.c at directory contiki/examples/cc26xx/cc26xx-web-demo

i want to create a third c file at directory contiki/examples/ipv6/rpl-border-router this third program should contain a switch case as follows

case 1: compile and run main_core.c

case 2: compile and run coap_server.c.

i tried to make header files for both 1 and 2 program then included them in third file but now i don't have any idea what to do ?

how to do this ?

0

There are 0 best solutions below