From Electron Cloud
Jump to: navigation, search
m
Line 37: Line 37:
 
         echo $(OBJECTS)
 
         echo $(OBJECTS)
 
</pre>
 
</pre>
 
 
 
[http://www.casino-theory.com/online-casino-royale/online-casino-gamble.html online casino gamble]
 
[http://www.fortune-slots.com/ slots]
 
[http://www.slots-wiki.com/index.php/slots_tips slots tips]
 
[http://www.gambling-online-theory.com/casinos-portal/best-casinos-online.html best casinos online]
 
[http://www.magical-casino.com/casino_games.html Casino games.]
 
[http://www.casino-theory.com/online-casino-royale/strategy-online-casino.html strategy online casino]
 
[http://www.magical-casino.com/casino_games.html Casino games.]
 
[http://www.online-casino-wiki.com/index.php/online_casino_directory online casino directory]
 
[http://www.gambling-online-theory.com/casinos-portal/free-casinos-on-line.html free casinos on line]
 
[http://www.online-casino-wiki.com/index.php/online_casino online casino]
 

Revision as of 22:51, 29 December 2006

This is just a basic starting point for compiling a C project.

TARGET = theapp
SOURCES = $(wildcard *.c)
OBJECTS = $(subst .c$,.o,$(SOURCES))
HEADERS = $(wildcard *.h)
CC = gcc
LINK = gcc
STRIP = strip

$(TARGET): .depend $(OBJECTS)
        $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBPATH) $(LIBS)
        $(STRIP) $(TARGET)

.c.o: $*.h common.h
        $(CC) -c $(CFLAGS) $(DEBUGFLAGS) $(INCPATH) -o $@ $<

-include .depend

version.h:
        echo "#define BUILD_DATE \"`/bin/date \"+%d %b %Y\"`\"" > version.h

clean:
        -rm -f .depend
        -rm -f $(OBJECTS)
        -rm -f *~ core *.core
        -rm -f version.h
        -rm -f $(TARGET)

depend:
.depend: Makefile $(SOURCES) $(HEADERS)
        @if [ ! -f .depend ]; then touch .depend; fi
        @makedepend -Y -f .depend  $(SOURCES) 2>/dev/null

test:
        echo $(OBJECTS)