From 5c0738aaf8b1c9a680c56ebf4f26016366fc812f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 24 Dec 2015 14:57:44 +0100 Subject: [PATCH] moved code to dir --- Makefile | 5 +++-- main.c | 2 +- vec_match.c => src/vec_match.c | 0 vec_match.h => src/vec_match.h | 0 4 files changed, 4 insertions(+), 3 deletions(-) rename vec_match.c => src/vec_match.c (100%) rename vec_match.h => src/vec_match.h (100%) diff --git a/Makefile b/Makefile index f699a58..bdc443c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ all: main.out -main.out: main.c vec_match.c vec_match.h - gcc -o main.out main.c vec_match.c -I. +main.out: main.c src/vec_match.c src/vec_match.h + gcc -o main.out main.c src/vec_match.c -Isrc run: main.out ./main.out clean: rm -f *.out *.elf *.lst + cd src && rm -f *.out *.elf *.lst diff --git a/main.c b/main.c index e3a20b1..a481e5c 100644 --- a/main.c +++ b/main.c @@ -2,7 +2,7 @@ #include #include -#include "vec_match.h" +#include "src/vec_match.h" #define DATA_LEN 11 diff --git a/vec_match.c b/src/vec_match.c similarity index 100% rename from vec_match.c rename to src/vec_match.c diff --git a/vec_match.h b/src/vec_match.h similarity index 100% rename from vec_match.h rename to src/vec_match.h