summaryrefslogtreecommitdiff
path: root/exar/Makefile
diff options
context:
space:
mode:
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