15e66a5b19
Change-Id: I4fde020ca0556a84d051f9b5e46f49ee1241266e
26 lines
351 B
Makefile
26 lines
351 B
Makefile
DEFINES=
|
|
CC=gcc
|
|
CXX=g++
|
|
LD=g++
|
|
PROFILE=
|
|
CFLAGS=-g $(PROFILE) -std=c99 -Wall $(DEFINES)
|
|
CXXFLAGS=-g $(PROFILE) -Wall $(DEFINES)
|
|
LDFLAGS=$(PROFILE)
|
|
BINS=nvptool
|
|
|
|
all: $(BINS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
%.o: %.cpp
|
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
|
|
|
nvptool: nvptool.o
|
|
$(LD) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -fr *.o
|
|
|
|
veryclean:
|
|
rm -rf $(BINS)
|