28 lines
657 B
Makefile
28 lines
657 B
Makefile
#--------------------------------------------------------------------#
|
|
# @date 2018-05-06 #
|
|
# #
|
|
# websh - A program to display linux commands in html format #
|
|
#--------------------------------------------------------------------#
|
|
|
|
CC = gcc
|
|
CFLAGS = -std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g -c
|
|
|
|
.PHONY: all clean
|
|
|
|
all: websh
|
|
|
|
websh: websh.o
|
|
$(CC) $^ -o $@
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) $^
|
|
|
|
clean:
|
|
rm -f websh.o websh
|
|
|
|
docs:
|
|
doxygen Doxyfile
|
|
|
|
docs_clean:
|
|
rm -rf html latex
|