diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-15 15:58:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-16 19:43:23 +0200 |
commit | 5fac4f2baf2eb08948ceb0abdca18510de8fbdd5 (patch) | |
tree | c7559f4ba2cc0927eee323b7d67de513e69e58b3 /Makefile | |
download | alpine-usb-creator-5fac4f2baf2eb08948ceb0abdca18510de8fbdd5.tar.bz2 alpine-usb-creator-5fac4f2baf2eb08948ceb0abdca18510de8fbdd5.tar.xz |
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
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_$@) + |