diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 16:35:40 +0200 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2025-09-12 16:35:40 +0200 |
| commit | abf01f657d068aa6b22ab962cbe01b88f3b5f7ea (patch) | |
| tree | 2a354a6112ef0b9ef6975613f12865831f5d4a69 /libs/timer_lib/Makefile | |
| parent | d174d803de2296061731c3698980a6a51e6fc3ef (diff) | |
event logging
Diffstat (limited to 'libs/timer_lib/Makefile')
| -rw-r--r-- | libs/timer_lib/Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/timer_lib/Makefile b/libs/timer_lib/Makefile new file mode 100644 index 0000000..3edaf73 --- /dev/null +++ b/libs/timer_lib/Makefile @@ -0,0 +1,23 @@ +SRC = timer.c +OBJ = $(SRC:.c=.o) +OUT = libtimer.a +TST = timertest +TSR = test.c +TOB = $(TSR:.c=.o) + +CFLAGS = -O3 +LDFLAGS = + +default: $(OUT) $(TST) + +.c.o: + gcc $(CFLAGS) -c $< -o $@ + +$(OUT): $(OBJ) + ar rcs $(OUT) $(OBJ) + +$(TST): $(OUT) $(TOB) + gcc $(CFLAGS) $(LDFLAGS) -o $(TST) $(TOB) $(OUT) -lrt + +clean: + rm -f $(OBJ) $(OUT) $(TOB) $(TST) |
