summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2014-10-31 10:15:31 +0900
committerFreeArtMan <dos21h@gmail.com>2014-10-31 10:15:31 +0900
commitc84cc88f0b34d8802390e2a7b6dab7f07ba277d1 (patch)
treef8af1ec8dafd72636eaf320f658c191c47bc1f75 /Makefile
parentf9a751917d0dd885ba7ae6047ccf7369512ee5df (diff)
downloadmicrobbs-c84cc88f0b34d8802390e2a7b6dab7f07ba277d1.tar.gz
microbbs-c84cc88f0b34d8802390e2a7b6dab7f07ba277d1.zip
added article dump, if you whant read it in whole set. hided first log message becouse to many spam from fake visitours
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index ac8cc80..443b8ca 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,17 @@
-make:
+PROJECT=microbbs
+CC=gcc
+CFLAGS=
+SOURCES=motd.c buildinfo.c sysinfo.c articles.c logs.c vote.c
+OBJECTS=$(SOURCES:.c=.o)
+
+all: $(OBJECTS) $(PROJECT)
+
+$(PROJECT): $(SOURCES)
cd ./libterm; make
- gcc -c motd.c
- gcc -c microbbs.c
- gcc -c buildinfo.c
- gcc -c sysinfo.c
- gcc -c articles.c
- gcc -c logs.c
- gcc buildinfo.o motd.o microbbs.o sysinfo.o articles.o logs.o libterm/libterm.o -o microbbs
+ $(CC) $(OBJECTS) $(CFLAGS) libterm/libterm.o microbbs.c -o $(PROJECT)
+
+%.o: %.c
+ $(CC) $(CFLAGS) -c $<
clean:
rm -rf *.o microbbs