fileshare/Makefile
Thomas Kolb 6cd65091ff Initial commit
- Working version with the following features:
  - Directory listing and navigation
  - Download files
  - HTTP error pages (403, 404, 500)
  - Verbose logging
2013-01-17 21:13:15 +01:00

25 lines
597 B
Makefile

CC=gcc
#CFLAGS+=-O2 -Wall -march=native -pedantic -std=c99 -D_POSIX_C_SOURCE=20120607L -D_XOPEN_SOURCE $(LUA_CFLAGS)
#CFLAGS+=-O2 -Wall -march=native -pedantic -std=c99 -D_POSIX_C_SOURCE=20120607L
CFLAGS+=-g -Wall -pedantic -std=c99 -D_POSIX_C_SOURCE=20120607L
LIBS=-lmicrohttpd
TARGET=fileshare
SOURCE=main.c logger.c dirlisting.c
DEPS=logger.h templates.h dirlisting.h
OBJ=$(patsubst %.c, %.o, $(SOURCE))
$(TARGET): $(OBJ) $(DEPS)
$(CC) -o $(TARGET) $(OBJ) $(LIBS)
%.o: %.c $(DEPS)
$(CC) -c $(CFLAGS) -o $@ $< $(INCLUDES)
doc:
doxygen doxygen.conf
clean:
rm -f $(TARGET)
rm -f $(OBJ)