makefile例子

CC = gcc
CPP = g++
CFLAGS = -g -Wall -Werror
DEST = exe
OBJECT = main.o ManagerService.o bloom.o


$(DEST): $(OBJECT)
        $(CPP) $(CFLAGS) $(OBJECT) -o $(DEST) -levent

bloom.o: bloom.c bloom.h
        $(CPP) -c bloom.c -o bloom.o

你可能感兴趣的:(gcc)