k9core

Coreutils for *nix operating systems [fork]
git clone git://bvnf.space/k9core.git
Log | Files | Refs | LICENSE

Makefile (1502B)


      1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
     42
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
# This makefile is BSD compatible: You can run it without gmake on most systems
.POSIX:

CC = cc
PREFIX = /usr/local
XCFLAGS = $(CFLAGS) -Wall

compile:
	mkdir -p bin
	$(CC)	$(XCFLAGS) -c	*.c nouserland/*.c
	$(CC)	-o bin/cat		cat.o
	$(CC)	-o bin/chgrp		chgrp.o
	$(CC)	-o bin/chmod		chmod.o
	$(CC)	-o bin/chown		chown.o
	$(CC)	-o bin/cp		cp.o
	$(CC)	-o bin/date		date.o
	$(CC)	-o bin/dirname		dirname.o
	$(CC)	-o bin/du		du.o
	$(CC)	-o bin/echo		echo.o
	$(CC)	-o bin/exec		exec.o
	$(CC)	-o bin/false		false.o
	$(CC)	-o bin/groups		groups.o
	$(CC)	-o bin/head		head.o
	$(CC)	-o bin/hostid		hostid.o
	$(CC)	-o bin/hostname		hostname.o
	$(CC)	-o bin/id		id.o
	$(CC)	-o bin/kill		kill.o
	$(CC)	-o bin/ln		ln.o
	$(CC)	-o bin/logname		logname.o
	$(CC)	-o bin/ls		ls.o
	$(CC)	-o bin/mkdir		mkdir.o
	$(CC)	-o bin/mount		mount.o
	$(CC)	-o bin/mv		mv.o
	$(CC)	-o bin/nproc		nproc.o
	$(CC)	-o bin/pwd		pwd.o
	$(CC)	-o bin/rm		rm.o
	$(CC)	-o bin/rmdir		rmdir.o
	$(CC)	-o bin/shred		shred.o
	$(CC)	-o bin/sleep		sleep.o
	$(CC)	-o bin/stat		stat.o
	$(CC)	-o bin/sync		sync.o
	$(CC)	-o bin/tee		tee.o
	$(CC)	-o bin/touch		touch.o
	$(CC)	-o bin/true		true.o
	$(CC)	-o bin/tty		tty.o
	$(CC)	-o bin/umount		umount.o
	$(CC)	-o bin/uname		uname.o
	$(CC)	-o bin/unlink		unlink.o
	$(CC)	-o bin/wc		wc.o
	$(CC)	-o bin/whoami		whoami.o
	$(CC)	-o bin/yes		yes.o

clean:
	rm -f *.o
distclean: clean
	rm -fr bin/
install:
	mkdir -p $(DESTDIR)$(PREFIX)/k9core
	cp bin/* $(DESTDIR)$(PREFIX)/k9core/
.PHONY:
	clean distclean compile