updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / finit-arc / Makefile
blobce96425a513949ea7998e290696add2ac7e87d19
1 CC = gcc
2 CFLAGS = -Os -Wall -DVERSION=\"$(VERSION)\" -DWHOAMI=\"`whoami`@`hostname`\"
3 LD = gcc
4 LDFLAGS =
5 LIBS =
6 VERSION = 0.2beta
7 PKG = finit-$(VERSION)
8 DFILES = Makefile README finit.c finit-mod.c finit-arc.c helpers.c helpers.h
9 BINS = finit-arc
13 #### Configurable parameters
14 # Use -march=pentium-m to build for Eeepc
15 #CFLAGS += -march=pentium-m
17 # Use built-in run-parts instead of /bin/run-parts
18 CFLAGS += -DBUILTIN_RUNPARTS
20 #### End of configurable parameters
22 .c.o:
23 $(CC) -c $(CFLAGS) -o $*.o $<
25 all: $(BINS)
27 finit-arc: finit-arc.o helpers.o
28 $(LD) $(LDFLAGS) -o $@ $+ $(LIBS)
29 strip $@
31 finit-arc.o: finit-arc.c Makefile
32 $(CC) -c $(CFLAGS) -DDIST_ARCHLINUX -o $@ finit-arc.c
34 clean:
35 rm -f *.o core *~ $(BINS)
37 helpers.o: helpers.c Makefile
39 dist:
40 rm -Rf $(PKG)
41 mkdir -p $(PKG)/contrib $(PKG)/patches
42 for i in $(DFILES); do cp $$i $(PKG)/`dirname $$i`; done
43 tar cf - $(PKG) | gzip -c > $(PKG).tar.gz
44 rm -Rf $(PKG)
45 ls -l $(PKG).tar.gz