This repository was archived by the owner on Nov 17, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +48
-0
lines changed
Expand file tree Collapse file tree 5 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 2626* .exe
2727* .out
2828* .app
29+
30+ # Ignore Mac specific files
31+ .DS_Store
Original file line number Diff line number Diff line change 1+ CC := g++ # This is the main compiler
2+ SRCDIR := src
3+ BUILDDIR := build
4+ TARGET := bin/orq
5+
6+ SRCEXT := cpp
7+ SOURCES := $(shell find $(SRCDIR ) -type f -name * .$(SRCEXT ) )
8+ OBJECTS := $(patsubst $(SRCDIR ) /% ,$(BUILDDIR ) /% ,$(SOURCES:.$(SRCEXT ) =.o ) )
9+ CFLAGS := -g -Wall
10+ LIB :=
11+ INC := -I include
12+
13+ $(TARGET ) : $(OBJECTS )
14+ @echo " Linking..."
15+ @echo " $( CC) $^ -o $( TARGET) $( LIB) " ; $(CC ) $^ -o $(TARGET ) $(LIB )
16+
17+ $(BUILDDIR ) /% .o : $(SRCDIR ) /% .$(SRCEXT )
18+ @mkdir -p $(BUILDDIR )
19+ @echo " $( CC) $( CFLAGS) $( INC) -c -o $@ $<" ; $(CC ) $(CFLAGS ) $(INC ) -c -o $@ $<
20+
21+ clean :
22+ @echo " Cleaning..." ;
23+ @echo " $( RM) -r $( BUILDDIR) $( TARGET) " ; $(RM ) -r $(BUILDDIR ) $(TARGET )
24+
25+ # Tests
26+ tester :
27+ $(CC ) $(CFLAGS ) test/tester.cpp $(INC ) $(LIB ) -o bin/tester
28+
29+ # Spikes
30+ ticket :
31+ $(CC ) $(CFLAGS ) spikes/ticket.cpp $(INC ) $(LIB ) -o bin/ticket
32+
33+ .PHONY : clean
Original file line number Diff line number Diff line change 1+ # Ignore everything in this directory
2+ *
3+ # Except this file
4+ ! .gitignore
Original file line number Diff line number Diff line change 1+ # Ignore everything in this directory
2+ *
3+ # Except this file
4+ ! .gitignore
Original file line number Diff line number Diff line change 1+ # Ignore everything in this directory
2+ *
3+ # Except this file
4+ ! .gitignore
You can’t perform that action at this time.
0 commit comments