# Elfhdr Makefile
#
# Author: Guto

include	$(EPOS)/makedefs

all:	$(INCLUDE)/elf-linux.h elfhdr

$(INCLUDE)/elf-linux.h: /usr/include/elf.h
	$(CPP) -dD -P /usr/include/elf.h | grep -v __ >! $(INCLUDE)/elf-linux.h

elfhdr:	elfhdr.c
	$(UNIX_CC) $(UNIX_CC_FLAGS) elfhdr.c
	$(UNIX_LD) $(UNIX_LD_FLAGS) -o elfhdr elfhdr.o

install: all
	$(INSTALL) elfhdr $(BIN)

print:
	$(PRINT1) elfhdr.c $(PRINT2)

clean:
	$(CLEAN) *.o elfhdr
