# Makefile to create the binary utility for disabling services.
#
# Contains the all target and the static target.  Obviously, the latter generates a
# staticly compiled binary, and the other doesn't.

CC=g++
OBJS=
CFLAGS=-Wall
LFLAGS=
PROGRAM=disable-defaults

all:
	$(CC) $(CFLAGS) $(LFLAGS) -o $(PROGRAM) main.cc
static:
	$(CC) $(CFLAGS) $(LFLAGS) -static -o $(PROGRAM)-static main.cc
	strip --strip-debug $(PROGRAM)-static

debug:
	$(CC) $(CFLAGS) -g -pedantic -o $(PROGRAM) main.cc
clean:
	rm -rf *~ core* *.o $(PROGRAM) $(PROGRAM)-static
