projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
81ba4a4
)
Added a simple Makefile for ctdlsh
author
Art Cancro
<ajc@citadel.org>
Tue, 16 Aug 2016 20:35:20 +0000
(16:35 -0400)
committer
Art Cancro
<ajc@citadel.org>
Tue, 16 Aug 2016 20:35:20 +0000
(16:35 -0400)
ctdlsh/Makefile
[new file with mode: 0644]
patch
|
blob
diff --git a/ctdlsh/Makefile
b/ctdlsh/Makefile
new file mode 100644
(file)
index 0000000..
946dff0
--- /dev/null
+++ b/
ctdlsh/Makefile
@@ -0,0
+1,19
@@
+OBJS := datetime.o export.o main.o passwd.o shutdown.o sockets.o who.o
+
+CFLAGS := -ggdb
+
+# link
+ctdlsh: $(OBJS)
+ gcc $(OBJS) -lreadline -o ctdlsh
+
+# pull in dependency info for *existing* .o files
+-include $(OBJS:.o=.d)
+
+# compile and generate dependency info
+%.o: %.c
+ gcc -c $(CFLAGS) $*.c -o $*.o
+ gcc -MM $(CFLAGS) $*.c > $*.d
+
+# remove compilation products
+clean:
+ rm -f ctdlsh *.o *.d