git @ Cat's Eye Technologies Cfluviurrh / rel_1_0_2014_0819 src / Makefile
rel_1_0_2014_0819

Tree @rel_1_0_2014_0819 (Download .tar.gz)

Makefile @rel_1_0_2014_0819raw · history · blame

# GNU Makefile for cfluviurrh.

PROG=cfluviurrh
CC?=gcc

WARNS=	-W -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes \
	-Wpointer-arith	-Wno-uninitialized -Wreturn-type -Wcast-qual \
	-Wwrite-strings -Wswitch -Wcast-align -Wchar-subscripts \
	-Wshadow -Winline -Wnested-externs -Wredundant-decls

ifdef ANSI
  CFLAGS+= -ansi -pedantic
else
  CFLAGS+= -std=c99 -D_POSIX_C_SOURCE=200112L
endif

CFLAGS+= ${WARNS} ${EXTRA_CFLAGS}

ifdef DEBUG
  CFLAGS+= -g
endif

all: $(PROG)

$(PROG): $(PROG).c
	$(CC) $(CFLAGS) $(PROG).c -o $(PROG)

clean:
	rm -f *.o *.core *.exe $(PROG)