summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorgodspeed1989 <tongxinjichu@gmail.com>2013-05-03 10:14:09 +0800
committergodspeed1989 <tongxinjichu@gmail.com>2013-05-03 10:14:09 +0800
commit5c4c50c1171f1cf084b1cc0f02cefa421f4e1914 (patch)
tree3632b1609bb8859fbb6b726f562180606db99b70 /Makefile
downloadfbv-5c4c50c1171f1cf084b1cc0f02cefa421f4e1914.tar.gz
fbv-5c4c50c1171f1cf084b1cc0f02cefa421f4e1914.zip
init commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5332f2b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+#
+# Makefile
+#
+# Makefile for fbv
+
+include Make.conf
+
+CC = gcc
+CFLAGS = -Wall -D_GNU_SOURCE
+
+SOURCES = main.c jpeg.c png.c bmp.c fb_display.c transforms.c
+OBJECTS = ${SOURCES:.c=.o}
+
+OUT = fbv
+
+all: $(OUT)
+ @echo Build DONE.
+
+$(OUT): $(OBJECTS)
+ $(CC) $(LDFLAGS) -o $(OUT) $(OBJECTS) $(LIBS)
+
+clean:
+ rm -f $(OBJECTS) *~ $$$$~* *.bak core config.log $(OUT)
+
+distclean: clean
+ @echo -e "error:\n\t@echo Please run ./configure first..." >Make.conf
+ rm -f $(OUT) config.h
+
+install: $(OUT)
+ cp $(OUT) $(bindir)
+ gzip -9c $(OUT).1 > $(mandir)/man1/$(OUT).1.gz
+
+uninstall: $(bindir)/$(OUT)
+ rm -f $(bindir)/$(OUT)
+ rm -f $(mandir)/man1/$(OUT).1.gz
+
OpenPOWER on IntegriCloud