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 $(CC) $(OBJECTS) $(CFLAGS) libterm/libterm.o microbbs.c -o $(PROJECT) %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -rf *.o microbbs cd ./libterm; make clean