Mail Archives: djgpp/1993/10/11/13:35:07
> This is what I use inside my makefiles. It's simple, and works !
> (The only limitation is that you have to have a separate
> directory for each program you want to compile and link.)
>
> OBJS = a.o b.o c.o d.o e.o f.o g.o
>
> prog.lnk: $(OBJS)
> -del prog.lnk
> for %o in (*.o) do echo %o >>prog.lnk # MS-DOS batch language
>
> prog: prog.lnk
> gcc -o prog @prog.lnk -lm
Since go32 knows about wildcards, you could have just as easily done
this:
prog : $(OBJS)
gcc -o prog *.o -lm
- Raw text -