TARGET = libserver SOURCES = main.o \ /usr/local/libevent/lib/libevent.a CPPFLAGS = -g -Wall -O3 -Wno-comment -I/usr/local/libevent/include -L/usr/local/libevent/lib # 環境によっては必要。iMac leopard だと逆にエラーに。 #LIBS = -lrt all:$(TARGET) $(TARGET):$(SOURCES) $(CXX) $(CPPFLAGS) $(LIBS) -o $(TARGET) $(SOURCES) .cpp.o: $(CXX) $(CPPFLAGS) -c -o $@ $< clean: rm -f *.o rm -f $(TARGET)