PREFIX=/usr/local/bin PATH=/opt/xmingw/bin:/usr/bin CFLAG=-O2 -Wall #CC=i386-mingw32msvc-gcc CC=gcc default: $(CC) $(CFLAG) -c parse_mysql.c $(CC) $(CFLAG) -o mysqlphp2postgres mysqlphp2postgres.c parse_mysql.o @if [ -e mysqlphp2postgres ]; then strip mysqlphp2postgres; fi @if [ -e mysqlphp2postgres.exe ]; then strip mysqlphp2postgres.exe; fi install: cp mysqlphp2postgres $(PREFIX) uninstall: rm -f $(PREFIX)/mysqlphp2postgres clean: @if [ -e parse_mysql.o ]; then rm parse_mysql.o; fi @if [ -e mysqlphp2postgres ]; then rm mysqlphp2postgres; fi @if [ -e mysqlphp2postgres.exe ]; then rm mysqlphp2postgres.exe; fi @echo "Clean!"