Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

the BEST Makefile !!

Name: Anonymous 2011-02-21 13:45

presenting: the BEST Makefile !!


CC     = gcc
LFLAGS = -g
CFLAGS = -g -Wall

SOURCES := $(shell ls *.c)
OBJECTS = $(SOURCES:.c=.o)

all:    $(OBJECTS)
    $(CC) $(LFLAGS) $(OBJECTS)

depends: $(shell ls *.c *.h)
    $(CC) *.c -MM > depends

clean:
    rm -f a.out depends $(OBJECTS)

count:
    wc *.c *.h Makefile

-include depends

Name: Anonymous 2011-02-21 14:45

assert(exceptions != null);

Name: Anonymous 2011-02-21 14:56

is this haskel

Name: Anonymous 2011-02-21 16:07

Too bad make has been obsoleted by redo1.

1 https://github.com/apenwarr/redo/

Name: Anonymous 2011-02-21 16:09

Too bad redo has been obsoleted by undo1.

1 Usually Ctrl-Z or C-_.

Name: Anonymous 2011-02-21 17:46

>>2
shouldn't it be assert(!exceptions)?

Name: Anonymous 2011-02-21 18:01

>>6
It should be AssertionFactory.makeAssertion(AssertionPolicies.NotNull).performAssertion(ExceptionRegister.getRegister()).getResult() == Boolean.FALSE.getBooleanValue();

Name: Anonymous 2011-02-21 18:26

>>1
Lame. My makefiles're much more hardcore and look like this:

_push = $(eval _save$1 := $(MAKEFILE_LIST))
_pop = $(eval MAKEFILE_LIST := $(_save$1))
_INCLUDE = $(call _push,$1)$(eval include $(_ROOT)/$1/Makefile)$(call _pop,$1)
DEPENDS_ON = $(call _INCLUDE,$1)
DEPENDS_ON_NO_BUILD = $(eval _NO_RULES := T)$(call _INCLUDE,$1)$(eval _NO_RULES :=)
 
.PHONY: all
all:
 
_MAKEFILES := $(filter %/Makefile,$(MAKEFILE_LIST))
_INCLUDED_FROM := $(patsubst $(_ROOT)/%,%,$(if $(_MAKEFILES),$(patsubst %/Makefile,%,$(word $(words $(_MAKEFILES)),$(_MAKEFILES)))))
ifeq ($(_INCLUDED_FROM),)
_MODULE := $(patsubst $(_ROOT)/%,%,$(CURDIR))
else
_MODULE := $(_INCLUDED_FROM)
endif
_MODULE_PATH := $(_ROOT)/$(_MODULE)
_MODULE_NAME := $(subst /,_,$(_MODULE))
$(_MODULE_NAME)_OUTPUT := $(_OUTTOP)/$(_MODULE)
 
_OBJEXT := .o
_LIBEXT := .a
_EXEEXT :=

Name: Anonymous 2011-02-21 18:29

>>8
makefiles're
Adventurous.

Name: Anonymous 2011-02-21 19:28


.PHONY: all
all:


why?

Name: Anonymous 2011-02-21 19:29

>>5
tup is neat, too. http://gittup.org/tup/

Name: Anonymous 2011-02-21 20:17

>>11
seems to be written by some total prick.

Name: Anonymous 2011-02-21 20:26

>>12
wow your a fucking fag

Name: Anonymous 2011-02-21 21:52

TUPPERWARE IS NOW A MEME

Name: Anonymous 2011-02-21 22:15

>>14
Failed attempt giving tupperware a meme status.

Name: Anonymous 2011-02-21 22:32

>>15
Failed attempt giving ``Failed attempt giving tupperware a meme status.'' a meme status.

Name: Anonymous 2011-02-21 22:50

>>16
Failed attempt give "failed attempt giving 'failed attempt giving tupperware a meme status.' a meme status" a meme status.

Name: Anonymous 2011-02-21 23:34

<-- dubz

Name: Anonymous 2011-02-22 1:41

>>18
Failed attempt giving my anus a haxed status.

Name: Anonymous 2011-02-22 2:42

>>19
Failed attempt giving tuna fish status.

Name: Anonymous 2011-02-26 12:36

version 2


CC     = gcc
LFLAGS = -g -lncurses
CFLAGS = -c -g -Wall

PROGRAM  = a.out

SOURCES := $(wildcard src/*.c)
OBJECTS := $(patsubst src/%.c,build/%.o,$(SOURCES))

.PHONY : all clean

all:    build $(PROGRAM)

$(PROGRAM): $(OBJECTS)
    $(CC) $(LFLAGS) $(OBJECTS) -o $@

build/%.o: src/%.c
    $(CC) $< $(CFLAGS) -o $@

build:
    mkdir -p $@

clean:
    rm -rf build $(PROGRAM)

Name: Anonymous 2011-02-26 20:16

:GJS1M 67dcbdbce4a0b67c4b48e86a6ae29205a95e4b83024a9d947213d1231800e8d9n
:84 0ecb9b6185d6ca4634eea1e6cebc90f8
:1298313936 1298769391
>>19
>><-- that's cool and all, but check my doubles over there

Name: Anonymous 2013-04-22 22:15

aye

Name: Anonymous 2013-04-22 22:19

>>21
WHAT THE FUCK IS THE PHONY SHIT FOR. I'M NOT CALLING ANYONE WITH MY PROGRAM FOR DICK'S SAKE.

Don't change these.
Name: Email:
Entire Thread Thread List