From df70e2122e47a9441a333add861c224a8a615938 Mon Sep 17 00:00:00 2001 From: joshholtrop Date: Wed, 22 Jul 2009 17:20:37 +0000 Subject: [PATCH] Initial pppc build structure in place git-svn-id: http://apu.dw.local/svnusers/JoshHoltrop/pppc/trunk@30 8131a0b2-b21c-1c47-bd6a-f003126495bd --- Makefile | 15 +++++++++++++++ pppc.cc | 14 ++++++++++++++ resources.h | 0 resources.rc | 0 4 files changed, 29 insertions(+) create mode 100755 Makefile create mode 100755 pppc.cc create mode 100755 resources.h create mode 100755 resources.rc diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..5517fc1 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ + +TARGET := pppc.exe +OBJS := pppc.o +CXXFLAGS := -O2 -Wall + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CXX) -o $@ $^ $(LDFLAGS) + +%.o: %.rc + windres $< $@ + +%.o: %.cc + $(CXX) -c -o $@ $< $(CPPFLAGS) $(CXXFLAGS) diff --git a/pppc.cc b/pppc.cc new file mode 100755 index 0000000..cdcb4cb --- /dev/null +++ b/pppc.cc @@ -0,0 +1,14 @@ + +#include +#include +using namespace std; + +int WinMain( + HINSTANCE hInstance, + HINSTANCE hPrevInstance, + LPSTR lpCmdLine, + int nCmdShow) +{ + cerr << "Hi there" << endl; + return 0; +} diff --git a/resources.h b/resources.h new file mode 100755 index 0000000..e69de29 diff --git a/resources.rc b/resources.rc new file mode 100755 index 0000000..e69de29