Use a clever definition of __FBSDID to allow building on !FreeBSD systems.

This commit is contained in:
Warner Losh 2007-12-09 16:48:51 +00:00
parent 71bd9b9cf9
commit 640360c2f4

View File

@ -1,7 +1,10 @@
# $FreeBSD$
# a very simple makefile...
# a simple makefile to help builds on !FreeBSD systems
pmake:
@echo 'make started.'
cc -DDEFSHELLNAME=\"sh\" -I. -c *.c
cc -D__FBSDID="static const char *id=" -DDEFSHELLNAME=\"sh\" -I. -c *.c
cc *.o -o pmake
@echo 'make completed.'
clean:
@rm -f *.o pmake