Add template
This commit is contained in:
parent
b22271aaae
commit
8641dfacf7
4 changed files with 21 additions and 0 deletions
14
problems/template/Makefile
Normal file
14
problems/template/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
all: lib.o main.o
|
||||
gcc -Wall -o bin lib.o main.o
|
||||
|
||||
lib.o: lib.c
|
||||
gcc -c -Wall lib.c
|
||||
|
||||
main.o: main.c
|
||||
gcc -c -Wall main.c
|
||||
|
||||
run:
|
||||
./bin
|
||||
|
||||
clean:
|
||||
rm *.o bin
|
1
problems/template/lib.c
Normal file
1
problems/template/lib.c
Normal file
|
@ -0,0 +1 @@
|
|||
#include "lib.h"
|
1
problems/template/lib.h
Normal file
1
problems/template/lib.h
Normal file
|
@ -0,0 +1 @@
|
|||
#pragma once
|
5
problems/template/main.c
Normal file
5
problems/template/main.c
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include "lib.h"
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue