diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 13 insertions, 8 deletions
@@ -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 |