Subject | Hash | Author | Date (UTC) |
---|---|---|---|
[feat] Edit Makefile | f41f74a524feb96228eb35a77a336862d5ca958c | Hassan Afify | 2019-09-19 05:04:00 |
[feat] Self Calcutation | 1be712f454adda33c8a182a4478a3abf5dba6745 | Hassan Afify | 2019-09-17 08:11:15 |
[init] Initial Commit | 2654768d0412e07cf7aa4b78a41b125aeceab82e | Hassan Afify | 2019-09-04 01:44:23 |
File | Lines added | Lines deleted |
---|---|---|
Makefile | 20 | 19 |
File Makefile changed (mode: 100644) (index 718f9ed..5869e41) | |||
1 | 1 | # azan | # azan |
2 | 2 | # See LICENSE file for copyright and license details. | # See LICENSE file for copyright and license details. |
3 | # .POSIX: | ||
4 | # SRC = drw.c dwm.c util.c | ||
5 | # OBJ = ${SRC:.c=.o} | ||
6 | 3 | ||
7 | 4 | SRC = azan.c | SRC = azan.c |
8 | CC = gcc | ||
9 | TARGET= azan | ||
10 | STD= -std=c99 | ||
11 | WARN= -Wall -Wextra -pedantic | ||
5 | OBJ = ${SRC:.c=.o} | ||
6 | TARGET = azan | ||
7 | CC = tcc | ||
8 | STD = -std=c99 | ||
9 | WARN = -bench -Wall -Werror -Wunusupported -Wwrite-strings | ||
12 | 10 | CFLAGS = ${STD} ${WARN} | CFLAGS = ${STD} ${WARN} |
13 | LIBS= -lm -ljson-c | ||
11 | LIBS = -lm | ||
14 | 12 | ||
15 | all: | ||
16 | $(CC) $(SRC) $(CFLAGS) -o $(TARGET) $(LIBS) | ||
13 | all: $(OBJ) | ||
14 | $(CC) $(CFLAGS) $(OBJ) $(LIBS) -o $(TARGET) | ||
17 | 15 | ||
18 | clean: | ||
19 | rm $(TARGET) /tmp/azan_* | ||
16 | %.o: %.c | ||
17 | $(CC) $(CFLAGS) -c $^ | ||
18 | |||
19 | install: $(TARGET) | ||
20 | cp -f $^ /bin | ||
21 | chmod 755 /bin/$^ | ||
20 | 22 | ||
21 | install: azan | ||
22 | cp -f azan /bin | ||
23 | chmod 755 /bin/azan | ||
23 | clean: | ||
24 | rm *.o $(TARGET) | ||
24 | 25 | ||
25 | 26 | uninstall: | uninstall: |
26 | rm -f /bin/azan | ||
27 | rm -f /bin/$(TARGET) | ||
27 | 28 | ||
28 | splint: | ||
29 | splint $(SRC) | ||
29 | splint: azan.c | ||
30 | splint $(SRC) > splint.log | ||
30 | 31 | ||
31 | .PHONY: all clean install uninstall | ||
32 | .PHONY: all clean install uninstall splint |