Initial C-style C++

This commit is contained in:
2013-02-02 07:16:14 +00:00
parent 5a63fb39fd
commit dab01f34f9
3 changed files with 85 additions and 90 deletions

View File

@@ -4,11 +4,13 @@ LDFLAGS := -lm
CFLAGS += `pkg-config lv2core pugl-0 --cflags`
LDFLAGS += `pkg-config lv2core pugl-0 --libs`
PTAPSRC := ptap.c
PTAPSRC += ptapui.c
PTAPOBJ := $(PTAPSRC:.c=.o)
PTAPSRC := ptap.cpp
PTAPSRC += ptapui.cpp
PTAPOBJ := $(PTAPSRC:.cpp=.o)
PTAPO := ptap.so
CPP := g++
all: $(PTAPO)
clean:
@@ -20,6 +22,6 @@ depend:
$(PTAPO): $(PTAPOBJ)
$(CC) $(LDFLAGS) -shared -fPIC -Wl,-soname,$(PTAPO) $(PTAPOBJ) -o $@
.c.o:
$(CC) -c -fPIC $(CFLAGS) $< -o $@
.cpp.o:
$(CPP) -c -fPIC $(CFLAGS) $< -o $@