From 5fac4f2baf2eb08948ceb0abdca18510de8fbdd5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sun, 15 Jul 2012 15:58:55 +0200 Subject: Initial commit --- Makefile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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_$@) + -- cgit v1.2.3