summaryrefslogtreecommitdiff
path: root/lab07/solution/Makefile.libuser.solution
diff options
context:
space:
mode:
Diffstat (limited to 'lab07/solution/Makefile.libuser.solution')
-rw-r--r--lab07/solution/Makefile.libuser.solution17
1 files changed, 17 insertions, 0 deletions
diff --git a/lab07/solution/Makefile.libuser.solution b/lab07/solution/Makefile.libuser.solution
new file mode 100644
index 0000000..3e9e891
--- /dev/null
+++ b/lab07/solution/Makefile.libuser.solution
@@ -0,0 +1,17 @@
+APP = libuser
+
+#############################################################################
+
+include ../make/defaults.mk
+
+all: install
+
+clean:
+ rm -f $(APP) $(DESTDIR)/$(APP)
+
+$(APP): $(APP).c Makefile
+ $(CC) -o $@ $< -L. -lmy-utils # add the lib search path and lib name
+
+install: $(APP)
+ cp $< $(DESTDIR)
+