summaryrefslogtreecommitdiff
path: root/exar/Makefile
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2013-05-16 22:26:14 +0200
committerportix <portix@gmx.net>2013-05-16 22:26:14 +0200
commita4862d0ab27539ab8a141f4a6a2bc4b8a3e6098c (patch)
tree1672cb221a278b8a32c656da4c788da3fe307f55 /exar/Makefile
parent8af5d0e94a4630294fb5cd42b9c3b9d5ab306c5c (diff)
downloaddwb-a4862d0ab27539ab8a141f4a6a2bc4b8a3e6098c.zip
Moving tools/exar/ to exar/
Diffstat (limited to 'exar/Makefile')
-rw-r--r--exar/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/exar/Makefile b/exar/Makefile
new file mode 100644
index 00000000..554f8c06
--- /dev/null
+++ b/exar/Makefile
@@ -0,0 +1,23 @@
+CFLAGS += -Wall -pedantic -Werror -std=c99 -g
+
+TARGET=exar
+OBJ=$(patsubst %.c, %.o, $(wildcard *.c))
+LIBEXAR=libexar.a
+
+all: $(TARGET) $(LIBEXAR)
+
+$(LIBEXAR): exar.o
+ @$(AR) rcs $@ $<
+
+$(TARGET): $(OBJ)
+ @echo $(CC) $@
+ @$(CC) $(OBJ) -o $@ $(CFLAGS) $(CPPFLAGS)
+
+%.o: %.c
+ @echo $(CC) $<
+ @$(CC) -c $< -o $@ $(CFLAGS) $(CPPFLAGS)
+
+clean:
+ $(RM) -rf $(OBJ) $(TARGET)
+
+.PHONY: clean