diff --git a/lcthw/ex1/.gitignore b/lcthw/.gitignore similarity index 50% rename from lcthw/ex1/.gitignore rename to lcthw/.gitignore index 2d697d2..6d21d2b 100644 --- a/lcthw/ex1/.gitignore +++ b/lcthw/.gitignore @@ -1 +1,2 @@ ex1 +ex3 diff --git a/lcthw/ex2/Makefile b/lcthw/Makefile similarity index 54% rename from lcthw/ex2/Makefile rename to lcthw/Makefile index c5e5824..05981d7 100644 --- a/lcthw/ex2/Makefile +++ b/lcthw/Makefile @@ -1,9 +1,10 @@ CFLAGS ?= -Wall -g -all: ex1 +all: ex1 ex3 clean: - rm -f ex1 + rm -f ex1 ex3 test: ./ex1 + ./ex3 diff --git a/lcthw/ex1/ex1.c b/lcthw/ex1.c similarity index 100% rename from lcthw/ex1/ex1.c rename to lcthw/ex1.c diff --git a/lcthw/ex2/.gitignore b/lcthw/ex2/.gitignore deleted file mode 100644 index 2d697d2..0000000 --- a/lcthw/ex2/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ex1 diff --git a/lcthw/ex2/ex1.c b/lcthw/ex2/ex1.c deleted file mode 100644 index b37124b..0000000 --- a/lcthw/ex2/ex1.c +++ /dev/null @@ -1,12 +0,0 @@ -#include - -/* This is a comment. */ -int main(int argc, char *argv[]) -{ - int distance = 100; - - // this is also a comment - printf("You are %d miles away.\n", distance); - - return 0; -} diff --git a/lcthw/ex3/ex3.c b/lcthw/ex3.c similarity index 100% rename from lcthw/ex3/ex3.c rename to lcthw/ex3.c diff --git a/lcthw/ex3/.gitignore b/lcthw/ex3/.gitignore deleted file mode 100644 index 2ea718c..0000000 --- a/lcthw/ex3/.gitignore +++ /dev/null @@ -1 +0,0 @@ -ex3