summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-07-15 15:58:55 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-07-16 19:43:23 +0200
commit5fac4f2baf2eb08948ceb0abdca18510de8fbdd5 (patch)
treec7559f4ba2cc0927eee323b7d67de513e69e58b3 /Makefile
downloadalpine-usb-creator-5fac4f2baf2eb08948ceb0abdca18510de8fbdd5.tar.bz2
alpine-usb-creator-5fac4f2baf2eb08948ceb0abdca18510de8fbdd5.tar.xz
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..672e497
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+
+CFLAGS ?= -g
+
+WX_CFLAGS := $(shell wx-config --cflags)
+WX_LIBS := $(shell wx-config --libs)
+
+
+OBJS_alpine-usb-creator-wxgtk := main.o dialog.o dialog_ui.o
+LIBS_alpine-usb-creator-wxgtk := $(WX_LIBS)
+CFLAGS += $(WX_CFLAGS)
+
+TARGETS = alpine-usb-creator-wxgtk
+
+all: $(TARGETS)
+
+clean:
+ rm -f $(TARGETS) $(OBJS_alpine-usb-creator-wxgtk)
+
+%.o: %.cpp
+ $(CXX) $(CFLAGS) $(CFLAGS_$@) -c $^
+
+alpine-usb-creator-wxgtk: $(OBJS_alpine-usb-creator-wxgtk)
+ $(CXX) $(LFDFLAGS) $(LDFLAGS_$@) -o $@ $(OBJS_$@) $(LIBS_$@)
+