summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2023-06-09 17:49:04 -0600
committerAaron Ball <nullspoon@oper.io>2023-06-09 17:49:04 -0600
commit102f10b0c2bb16cdbc654506cd2fa4000c66de78 (patch)
tree8910cd95061820dda6dd790fb090ef2fbcf479a5 /Makefile
parent2fcb8ea3ffa50b4866e1d97f3625129c8257605b (diff)
downloadfd-enum-102f10b0c2bb16cdbc654506cd2fa4000c66de78.tar.gz
fd-enum-102f10b0c2bb16cdbc654506cd2fa4000c66de78.tar.xz
Reorganize code
This moves file descriptor stating code into the new fdstats files, and the config code into the new config files. Relevant updates made to reference structs by pointer.
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