summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d2485be..e97e1f8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
CCOPTS := --std=gnu99 -Wall -Werror -O3
all:
- cc $(CCOPTS) main.c -o fd-enum
+ if [ ! -d obj ]; then mkdir obj; fi
+ cc $(CCOPTS) -o obj/config.o -c config.c
+ cc $(CCOPTS) -o obj/fdstats.o -c fdstats.c
+ cc $(CCOPTS) -o fd-enum main.c obj/*.o

Generated by cgit