summaryrefslogtreecommitdiff
path: root/Makefile
blob: 443b8caf744867a83ff01169cc6710a9ea92cf63 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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