pcw / Makefile

Evan Gates aa84127 























Evan Gates 9634200 
Evan Gates aa84127 







Evan Gates dcc34d1 
Evan Gates 9634200 
Evan Gates aa84127 








Evan Gates 9634200 

Evan Gates aa84127 



Evan Gates ec6e776 

Evan Gates aa84127 



Evan Gates 9634200 
Evan Gates aa84127 


# pcw - popup chat window

include config.mk

SRC = pcw.c cw.c
OBJ = ${SRC:.c=.o}
BIN = ${OBJ:.o=}

all: options ${BIN}

options:
	@echo pcw build options:
	@echo "CFLAGS   = ${CFLAGS}"
	@echo "LDFLAGS  = ${LDFLAGS}"
	@echo "CC       = ${CC}"

.c.o:
	@echo CC $<
	@${CC} -c ${CFLAGS} $<

.o:
	@echo CC -o $@
	@${CC} -o $@ $< ${LDFLAGS}

${OBJ}: config.mk

clean:
	@echo cleaning
	@rm -f ${BIN} ${OBJ} pcw-${VERSION}.tar.gz

dist: clean
	@echo creating dist tarball
	@mkdir -p pcw-${VERSION}
	@cp -R LICENSE Makefile README config.mk pcw.1 \
		pcw_win.sh patches extras ${SRC} pcw-${VERSION}
	@tar -cf pcw-${VERSION}.tar pcw-${VERSION}
	@gzip pcw-${VERSION}.tar
	@rm -rf pcw-${VERSION}

install: all
	@echo installing executable files to ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@for bin in ${BIN}; do cp -f $$bin ${DESTDIR}${PREFIX}/bin/$$bin; done
	@for bin in ${BIN}; do chmod 755   ${DESTDIR}${PREFIX}/bin/$$bin; done
	@cp -f pcw_win.sh ${DESTDIR}${PREFIX}/bin/pcw_win.sh
	@chmod 755  ${DESTDIR}${PREFIX}/bin/pcw_win.sh
	@echo installing manual pages to ${DESTDIR}${MANPREFIX}/man1
	@mkdir -p ${DESTDIR}${MANPREFIX}/man1
	@sed "s/VERSION/${VERSION}/g" < pcw.1 > ${DESTDIR}${MANPREFIX}/man1/pcw.1
	@chmod 644 ${DESTDIR}${MANPREFIX}/man1/pcw.1
	@echo
	@echo "NOTE: don't forget to install new extras"

uninstall:
	@echo removing executables from ${DESTDIR}${PREFIX}/bin
	@for bin in ${BIN}; do rm -f ${DESTDIR}${PREFIX}/bin/$$bin; done
	@rm -f ${DESTDIR}${PREFIX}/bin/pcw_win.sh
	@echo removing manual page from ${DESTDIR}${MANPREFIX}/man1
	@rm -f ${DESTDIR}${MANPREFIX}/man1/pcw.1

.PHONY: all options clean dist install uninstall
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.