Added Makefile
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
DataHoarder 2020-12-19 18:31:23 +01:00
parent 484a2899de
commit 880bdc174a
2 changed files with 14 additions and 1 deletions

View file

@ -9,5 +9,6 @@ steps:
commands:
- apt update
- DEBIAN_FRONTEND=noninteractive apt install -y gcc
- gcc -o fm10k-dump fm10k-dump.c
- make clean
- make
...

12
Makefile Normal file
View file

@ -0,0 +1,12 @@
default: fm10k-dump
fm10k-dump.o: fm10k-dump.c
gcc -c fm10k-dump.c -o fm10k-dump.o
fm10k-dump: fm10k-dump.o
gcc fm10k-dump.o -o fm10k-dump
clean:
-rm -f fm10k-dump
-rm -f fm10k-dump.o