mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-08-02 09:17:51 +00:00
Added initial make build support into new scripts/ folder.
Moved temp sensor example into examples/temp_sensor. Added basic make example in examples/make_example.
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
#include "foo.h"
|
||||
|
||||
void foo_init(void)
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#ifndef _foo_h
|
||||
|
||||
void foo_init(void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include "foo.h"
|
||||
|
||||
int real_main(int argc, char ** argv)
|
||||
{
|
||||
printf("Hello world!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef TEST
|
||||
int main(int argc, char ** argv)
|
||||
{
|
||||
return real_main(argc, argv);
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user