summaryrefslogtreecommitdiff
path: root/Makefile
blob: c7dc48b36808cf7e17f7082edba040ebb2ac0148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
PROJECT=notifylist
CC=gcc
CXX=g++
CFLAGS=
LDFLAGS=
SOURCES=$(wildcard *.c)
OBJECTS=$(SOURCES:.c=.o)
INCLUDE=-I./extlib/

all: createextlib $(OBJECTS) $(PROJECT)

$(PROJECT): $(SOURCES) notifylist.c
	$(CXX) -c notifylist.c	
	$(CC) $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o $(PROJECT)

%.o: %.c
	@echo $@
	@$(CXX) $(CFLAGS) $(INCLUDE) -c $< -o $(subst .c,.o,$<)


EXTLIB_SOURCES=$(wildcard extlib/*.c)
EXTLIB_OBJECTS=$(EXTLIB_SOURCES:.c=.o)
OBJECTS+=$(EXTLIB_OBJECTS)
createextlib: $(EXTLIB_OBJECTS)
	#asd

clean:
	rm -f $(PROJECT) *.o extlib/*.o