blob: 65f084fc1b187c030de7f8dbf39601218f626514 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
CC = gcc
CFLAGS = -Wall -g
SOURCES = xstring.c ui-common.c ctimeline.c
OBJECTS = ${SOURCES:.c=.o}
CTIMELINE_PATH = /var/www/html/ctimeline
CTIMELINE_ELF = ctimeline.cgi
CTIMELINE_CSS = ctimeline.css
.PHONY: all clean install uninstall
all: $(CTIMELINE_ELF)
$(CTIMELINE_ELF): $(OBJECTS)
$(CC) $(CFLAGS) -o $(CTIMELINE_ELF) $(OBJECTS)
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf $(CTIMELINE_ELF) $(OBJECTS)
install: all
install -m 755 -d $(CTIMELINE_PATH)
install -m 755 $(CTIMELINE_ELF) $(CTIMELINE_PATH)/$(CTIMELINE_ELF)
install -m 755 $(CTIMELINE_CSS) $(CTIMELINE_PATH)/$(CTIMELINE_CSS)
uninstall:
rm -f $(CTIMELINE_PATH)/$(CTIMELINE_ELF)
rm -f $(CTIMELINE_PATH)/$(CTIMELINE_CSS)
|