From 5ea177628c408a543aa5323703dc8bbeb26307de Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 16 Aug 2016 16:35:20 -0400 Subject: [PATCH] Added a simple Makefile for ctdlsh --- ctdlsh/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ctdlsh/Makefile diff --git a/ctdlsh/Makefile b/ctdlsh/Makefile new file mode 100644 index 000000000..946dff0df --- /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 -- 2.30.2