All pastes #453760 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-23 05:30 UTC
rendered paste body

CFLAGS          := -Wall -g `pkg-config --cflags gtk+-2.0 glib-2.0 gthread-2.0` -O3 -ffast-math -funroll-loops -fomit-frame-pointer
LDFLAGS         := -lpthread -lpng -lm `pkg-config --libs gtk+-2.0 glib-2.0 gthread-2.0`
BIN                     := foo
CC                      := gcc
OBJS            := ${patsubst %.c, %.o, ${wildcard *.c}}
INSTALL_DIR     := ${HOME}/bin

${BIN}: ${OBJS}
        ${CC} ${LDFLAGS} -o ${BIN} ${OBJS}

install:
        cp ${BIN} ${INSTALL_DIR}

clean:
        rm ${OBJS}
        rm ${BIN}