added t1 t2 and readme
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#include "fun1.h"
|
||||
|
||||
int fun1()
|
||||
{
|
||||
printf("Hello from FN1\n");
|
||||
// fun2();
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
int fun1();
|
||||
@@ -0,0 +1,8 @@
|
||||
#include "fun2.h"
|
||||
|
||||
int fun2()
|
||||
{
|
||||
printf("Hello from FN2\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
int fun2();
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
#include "fun1.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("Hello World\n");
|
||||
fun1();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
CC=gcc
|
||||
IDIR=./include
|
||||
LDIR=./lib
|
||||
ODIR=./out
|
||||
_DEPS = fun1.h
|
||||
DEPS = $(pathsbst %,(IDIR)/%,%(_DEPS))
|
||||
|
||||
|
||||
CFLAGS= -I. -T$(IDIR)
|
||||
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: main.c fun1.c
|
||||
${CC} -o $(ODIR)/main2 main.c fun1.c
|
||||
|
||||
clean:
|
||||
rm -r $(ODIR)/*
|
||||
rm -r ./keys/*
|
||||
Binary file not shown.
Reference in New Issue
Block a user