2 CFLAGS
= -Os
-Wall
-DVERSION
=\"$(VERSION
)\" -DWHOAMI
=\"`whoami`@
`hostname`\"
8 DFILES
= Makefile README finit.c finit-mod.c finit-arc.c helpers.c helpers.h
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
23 $(CC
) -c
$(CFLAGS
) -o
$*.o
$<
27 finit-arc
: finit-arc.o helpers.o
28 $(LD
) $(LDFLAGS
) -o
$@
$+ $(LIBS
)
31 finit-arc.o
: finit-arc.c Makefile
32 $(CC
) -c
$(CFLAGS
) -DDIST_ARCHLINUX
-o
$@ finit-arc.c
35 rm -f
*.o core
*~
$(BINS
)
37 helpers.o
: helpers.c Makefile
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