Mercurial > hg > nnchat
view Makefile.gen @ 341:ece94ae2a051
Handling of certain Curses keycodes only works as intended under
PDCurses (Win32), so #ifdef the code out when working under NCurses.
Specifically KEY_RESIZE's code is defined differently under NCurses vs.
PDCurses, causing problems with terminal resizes if the PDCurses specific
key handling code is enabled.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 23 Jun 2011 01:22:44 +0300 |
parents | 8c983c3b93eb |
children | 7c28f38cb6dd |
line wrap: on
line source
CFLAGS += -g -W -Wall -Wextra -DTH_NO_DEFAULTS CFLAGS += -O2 #CFLAGS += -std=c99 -pedantic # # Version strings # NN_VERSION := $(shell cat VERSION) comma:= , NN_VERSION_COM := $(subst .,$(comma),$(NN_VERSION)) # # Objects # NNCHAT_BIN=$(BINPATH)nnchat$(EXEEXT) TARGETS+=$(NNCHAT_BIN) # # Target rules # all: $(NONBUILD) $(TARGETS) $(OBJPATH)%.o: %.c %.h $(CC) $(CFLAGS) -c -o $@ $< $(NNCHAT_BIN): nnchat.c $(OBJPATH)libnnchat.o $(OBJPATH)th_util.o $(OBJPATH)th_string.o $(OBJPATH)th_args.o $(OBJPATH)th_config.o $(EXTRAOBJS) VERSION $(CC) $(CFLAGS) -o $@ $(filter %.c %.o,$+) $(LDFLAGS) -DNN_VERSION=\"$(NN_VERSION)\" # # Special targets # clean: $(RM) $(TARGETS) $(OBJPATH)*.o srcclean: clean $(RM) *~