Makefile: Add few src file for testing

This commit is contained in:
Mathieu Maret 2017-06-12 15:19:22 +02:00
parent 966a1e12f6
commit 601995f889
4 changed files with 22 additions and 0 deletions

8
Makefile/bin.cpp Normal file
View File

@ -0,0 +1,8 @@
#include <iostream>
#include "lib.h"
int main(int argc, const char *argv[])
{
std::cout << "C++ Hello World!" << std::endl;
return 0;
}

3
Makefile/lib.c Normal file
View File

@ -0,0 +1,3 @@
#include "lib.h"
void lib() { return; }

3
Makefile/lib.h Normal file
View File

@ -0,0 +1,3 @@
#pragma once
void lib();

8
Makefile/main.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
#include "lib.h"
int main(int argc, const char *argv[])
{
printf("Hello world\n");
return 0;
}