Re: help needed- compilation issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> TARGET  := hello−1
> WARN    := −W −Wall −Wstrict−prototypes −Wmissing−prototypes
> INCLUDE := −isystem /lib/modules/`uname −r`/build/include
> CFLAGS  := −O2 −DMODULE −D__KERNEL__ ${WARN} ${INCLUDE}
> CC      := gcc−3.0
> ${TARGET}.o: ${TARGET}.c
> .PHONY: clean
> clean:
>     rm −rf ${TARGET}.o
> 

your makefile is highly broken!

http://marc.theaimsgroup.com/?l=linux-ia64&m=105676403229397&w=2

has a description of what you need to do, it's a lot simpler for sure
than what you have, and a lot less fragile too.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux