summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@audiopole.in.bpm>2019-02-05 03:22:39 +0000
committerroot <root@audiopole.in.bpm>2019-02-05 03:22:39 +0000
commit8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4 (patch)
tree1f33603338d69148c0e2c7f558e10c828591412d /Makefile
downloadqotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.gz
qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.bz2
qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.zip
initial
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile62
1 files changed, 62 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a91b084
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,62 @@
+MKDIR=mkdir
+CP=cp
+CC=gcc
+
+BUILDDIR=build
+
+
+
+# Object Files
+OBJECTFILES= \
+ ${BUILDDIR}/db.o \
+ ${BUILDDIR}/ini.o \
+ ${BUILDDIR}/logger.o \
+ ${BUILDDIR}/main.o \
+ ${BUILDDIR}/server.o
+
+
+# C Compiler Flags
+CFLAGS=
+
+
+# Link Libraries and Options
+LDLIBSOPTIONS=-lpq
+
+# Build Targets
+
+qotdserver: ${OBJECTFILES}
+ ${LINK.c} -o ${BUILDDIR}/qotdserver ${OBJECTFILES} ${LDLIBSOPTIONS}
+
+${BUILDDIR}/db.o: db.c
+ ${MKDIR} -p ${BUILDDIR}
+ ${RM} "$@.d"
+ $(COMPILE.c) -g -I/usr/include/postgresql/ -MMD -MP -MF "$@.d" -o ${BUILDDIR}/db.o db.c
+
+${BUILDDIR}/ini.o: ini.c
+ ${MKDIR} -p ${BUILDDIR}
+ ${RM} "$@.d"
+ $(COMPILE.c) -g -MMD -MP -MF "$@.d" -o ${BUILDDIR}/ini.o ini.c
+
+${BUILDDIR}/logger.o: logger.c
+ ${MKDIR} -p ${BUILDDIR}
+ ${RM} "$@.d"
+ $(COMPILE.c) -g -MMD -MP -MF "$@.d" -o ${BUILDDIR}/logger.o logger.c
+
+${BUILDDIR}/main.o: main.c
+ ${MKDIR} -p ${BUILDDIR}
+ ${RM} "$@.d"
+ $(COMPILE.c) -g -MMD -MP -MF "$@.d" -o ${BUILDDIR}/main.o main.c
+
+${BUILDDIR}/server.o: server.c
+ ${MKDIR} -p ${BUILDDIR}
+ ${RM} "$@.d"
+ $(COMPILE.c) -g -MMD -MP -MF "$@.d" -o ${BUILDDIR}/server.o server.c
+
+
+clean:
+ ${RM} -r ${BUILDDIR}
+
+
+install:
+ ${CP} ${BUILDDIR}/qotdserver /usr/sbin/
+ ${CP} qotdserver.conf /etc/