Codebase list massdns / dad23f89-1b9e-48e3-b41c-c9b6f3eb4542/main Makefile
dad23f89-1b9e-48e3-b41c-c9b6f3eb4542/main

Tree @dad23f89-1b9e-48e3-b41c-c9b6f3eb4542/main (Download .tar.gz)

Makefile @dad23f89-1b9e-48e3-b41c-c9b6f3eb4542/mainraw · history · blame

PREFIX=/usr/local

all:
	mkdir -p bin
	$(CC) $(CFLAGS) -O3 -std=c11 -DHAVE_EPOLL -DHAVE_SYSINFO -Wall -fstack-protector-strong main.c -o bin/massdns
debug:
	mkdir -p bin
	$(CC) $(CFLAGS) -O0 -std=c11 -DHAVE_EPOLL -DHAVE_SYSINFO -Wall -g -DDEBUG main.c -o bin/massdns
nolinux:
	mkdir -p bin
	$(CC) $(CFLAGS) -O3 -std=c11 -Wall -fstack-protector-strong main.c -o bin/massdns
debugnolinux:
	mkdir -p bin
	$(CC) $(CFLAGS) -O0 -std=c11 -Wall -fstack-protector-strong -g -DDEBUG main.c -o bin/massdns
install:
	test -d $(PREFIX) || mkdir $(PREFIX)
	test -d $(PREFIX)/bin || mkdir $(PREFIX)/bin
	install -m 0755 bin/massdns $(PREFIX)/bin